Bump actions/upload-artifact from 3 to 4 #160
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: Release Appimage | |
#concurrency: | |
#group: build-${{ github.ref }} | |
#cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "trunk" ] | |
paths: | |
- '.github/workflows/appimage.yml' | |
- 'AppRun' | |
- 'version' | |
- 'workflow.sh' | |
- '!**/docker.yml' | |
- '!Dockerfile*' | |
pull_request: | |
branches: [ "trunk" ] | |
paths: | |
- '.github/workflows/appimage.yml' | |
- 'AppRun' | |
- 'version' | |
- 'workflow.sh' | |
jobs: | |
# Label of the container job | |
build-appimage: | |
strategy: | |
fail-fast: false | |
matrix: | |
ubuntu_codename: ['focal', 'jammy'] | |
container: andy5995/0ad-build-env:${{ matrix.ubuntu_codename }} | |
runs-on: ubuntu-22.04 | |
env: | |
ARCH: x86_64 | |
WORKSPACE: ${{ github.workspace }} | |
VERSION: 0.0.27-rc1-27645-alpha | |
UBUNTU_CODENAME: ${{ matrix.ubuntu_codename }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Workflow script | |
run: | | |
chmod 1777 "$WORKSPACE" | |
su 0adbuilder --command "GITHUB_ACTIONS=${GITHUB_ACTIONS} $WORKSPACE/workflow.sh" | |
- name: Release AppImage | |
if: ${{ github.ref == 'refs/heads/trunk' }} | |
uses: ncipollo/release-action@v1 | |
with: | |
name: 0ad-${{ env.VERSION }} AppImage | |
allowUpdates: True | |
prerelease: ${{ contains(env.VERSION, 'svn') || contains(env.VERSION, 'rc') }} | |
artifacts: "${{ env.WORKSPACE }}/0ad*.AppImage*" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
omitNameDuringUpdate: True | |
omitBodyDuringUpdate: True | |
tag: v${{ env.VERSION }} | |
replacesArtifacts: true | |
- name: Upload Artifacts | |
if: ${{ github.ref != 'refs/heads/trunk' }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: AppImage | |
path: ${{ env.WORKSPACE }}/0ad*.AppImage* | |