Add GitHub Pages workflow to deploy website/ to airstrike.dev #1
This file contains hidden or 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 landing page to GitHub Pages | |
| # Publishes the static landing site in website/ to GitHub Pages. | |
| # The site is served at the custom domain airstrike.dev (configured in repo Pages settings). | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "website/**" | |
| - ".github/workflows/deploy-pages.yml" | |
| workflow_dispatch: | |
| # Least-privilege permissions needed to deploy to Pages. | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Allow one concurrent deployment; don't cancel an in-progress run. | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload website/ as Pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./website | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |