📝 Update the article on installing Java via Homebrew (#77) #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Site | |
on: | |
push: | |
branches: [main] | |
jobs: | |
publish: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: npm | |
- uses: fregante/setup-git-user@v1 | |
- name: Install Dependencies | |
run: npm install | |
- name: Build Site | |
run: npm run build | |
- name: Publish Site | |
run: | | |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
npm run deploy --silent | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |