Pages start from here #2
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: Pages start from here | |
| on: | |
| workflow_dispatch | |
| permissions: | |
| pages: write # to deploy to Pages | |
| id-token: write # to verify the deployment originates from an appropriate source | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Create sample file | |
| run: echo "<h1>Laboratorio fra pari!</h1>" > index.html | |
| - name: Upload artifact | |
| # https://github.com/actions/upload-pages-artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: . | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| # https://github.com/actions/deploy-pages | |
| uses: actions/deploy-pages@v4 |