Bump actions/upload-artifact from 3 to 4 (#37) #156
This file contains 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: build | |
on: [push] | |
env: | |
FORCE_COLOR: 1 | |
jobs: | |
build: | |
runs-on: buildjet-8vcpu-ubuntu-2204 | |
permissions: | |
packages: read | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/npm-install | |
- name: Login to GitHub Packages Docker Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- run: npm run ci | |
# upload changes.patch on failure | |
- name: Upload uncomitted changes | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: changes.patch | |
path: changes.patch |