update text #77
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: Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: write # Required for pushing changes (read-only required for deployment) | |
pages: write # Required for deployment | |
id-token: write # Required for deployment | |
concurrency: | |
group: github-pages | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: macos-latest # I'm not sure how to install the webp tool on ubuntu, so using mac instead | |
steps: | |
- name: Install webp compression tool | |
run: | | |
curl https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.3.0-mac-arm64.tar.gz | tar zvxf - | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup git config | |
run: | | |
git config --global user.name "skedwards88" | |
git config --global user.email "skedwards88@gmail.com" | |
- name: Bump version | |
run: npm version patch | |
- name: Push | |
run: | | |
git push origin main | |
- name: Install requirements | |
run: npm install | |
- name: Test | |
run: npm run test | |
- name: Build | |
run: npm run build | |
- name: Setup Pages | |
uses: actions/configure-pages@v2 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: "./dist/" | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |