Rename FPWD file to index.html. #3
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
| # Relies on the standard GitHub action setup to deploy to GitHub Pages | |
| # The really specific details are in the steps that generates the vocabulary files | |
| # (and the deployment of deno as an underling tool). | |
| # See https://github.com/w3c/yml2vocab for more details | |
| # | |
| # Note that for this script to work, the repository setting for GitHub pages must be changed! | |
| name: Publish Editor's Draft | |
| on: | |
| push: | |
| branches: [main] | |
| # Allows workflow to be triggered manually from the Actions tab | |
| workflow_dispatch: | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Allow one concurrent deployment | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout/@v4 | |
| - name: Setup Github Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| # Upload entire repository | |
| path: '.' | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |