Bump actions/upload-pages-artifact from 3 to 4 in the dependabot group #27
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: Main Workflow | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| jobs: | |
| test: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/cache@v4 | |
| with: | |
| key: v1-${{ hashFiles('package-lock.json') }}-${{ hashFiles('elm.json', 'elm-tooling.json') }} | |
| restore-keys: | | |
| v1-${{ hashFiles('package-lock.json') }}- | |
| v1- | |
| path: | | |
| node_modules | |
| elm-stuff | |
| benchmarks/elm-stuff | |
| ~/.elm | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - run: npm install | |
| - run: npm test | |
| - run: npx elm-format --validate src/ tests/ benchmarks/ | |
| publish: | |
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
| needs: test | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/cache@v4 | |
| with: | |
| key: v1-${{ hashFiles('package-lock.json') }}-${{ hashFiles('elm.json', 'elm-tooling.json') }} | |
| restore-keys: | | |
| v1-${{ hashFiles('package-lock.json') }}- | |
| v1- | |
| path: | | |
| node_modules | |
| elm-stuff | |
| benchmarks/elm-stuff | |
| ~/.elm | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - uses: dillonkearns/elm-publish-action@v1 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| path-to-elm: ./node_modules/.bin/elm | |
| deploy-benchmark: | |
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
| needs: test | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/cache@v4 | |
| with: | |
| key: v1-${{ hashFiles('package-lock.json') }}-${{ hashFiles('elm.json', 'elm-tooling.json') }} | |
| restore-keys: | | |
| v1-${{ hashFiles('package-lock.json') }}- | |
| v1- | |
| path: | | |
| node_modules | |
| elm-stuff | |
| benchmarks/elm-stuff | |
| ~/.elm | |
| - run: npm run generate-benchmark | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: "./docs" | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |