That's not my newsletter :-) #169
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: szabgab/perl | |
| name: Perl | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Environment | |
| run: | | |
| echo GITHUB.REF_NAME: ${{ github.ref_name }} | |
| printenv | sort | |
| - name: Install deps | |
| run: | | |
| cpanm --quiet --installdeps --verbose --notest . | |
| - name: Tests | |
| run: | | |
| prove | |
| - name: Generate HTML | |
| if: github.ref == 'refs/heads/master' | |
| run: perl bin/generate.pl web all | |
| - name: Setup Pages | |
| if: github.repository == 'szabgab/perlweekly' | |
| uses: actions/configure-pages@v6 | |
| - name: Upload artifact | |
| if: github.repository == 'szabgab/perlweekly' | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: docs/ | |
| deploy: | |
| if: (github.ref == 'refs/heads/master') && (github.repository == 'szabgab/perlweekly') | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 |