Handle unset USER in Windows staging #40
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: linux-appimage | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: Optional version to package (for example 0.1.0 or 0.1.1-rc2). | |
| required: false | |
| type: string | |
| permissions: | |
| contents: write | |
| jobs: | |
| resolve-version: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| package_version: ${{ steps.version.outputs.package_version }} | |
| steps: | |
| - id: version | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| version='${{ github.event.inputs.version }}' | |
| if [[ -z "$version" && '${{ github.ref_type }}' == 'tag' ]]; then | |
| version='${{ github.ref_name }}' | |
| fi | |
| version="${version#v}" | |
| printf 'package_version=%s\n' "$version" >> "$GITHUB_OUTPUT" | |
| build-appimage: | |
| needs: resolve-version | |
| uses: danjboyd/gnustep-packager/.github/workflows/package-gnustep-app.yml@bca864ff163e129100881145e017429fed155bf7 | |
| with: | |
| manifest-path: packaging/manifests/linux-appimage.manifest.json | |
| backend: appimage | |
| package-version: ${{ needs.resolve-version.outputs.package_version }} | |
| packager-repository: danjboyd/gnustep-packager | |
| packager-ref: bca864ff163e129100881145e017429fed155bf7 | |
| runs-on-appimage: '["self-hosted","linux","gnustep-clang"]' | |
| skip-default-host-setup: true | |
| preflight-shell: bash | |
| preflight-command: ./packaging/ci/preflight-appimage.sh | |
| run-validation: true | |
| run-smoke: true | |
| upload-artifacts: true | |
| artifact-name: objcmarkdown-linux | |
| publish-release-assets: | |
| if: github.ref_type == 'tag' | |
| needs: | |
| - build-appimage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download Linux Package Artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: objcmarkdown-linux-packages | |
| path: dist/linux | |
| - name: Stage Linux Release Assets | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| mkdir -p release-assets | |
| cp dist/linux/*.AppImage release-assets/ | |
| if compgen -G 'dist/linux/*.AppImage.zsync' > /dev/null; then | |
| cp dist/linux/*.AppImage.zsync release-assets/ | |
| fi | |
| if compgen -G 'dist/linux/*.update-feed.json' > /dev/null; then | |
| cp dist/linux/*.update-feed.json release-assets/ | |
| fi | |
| if compgen -G 'dist/linux/*.metadata.json' > /dev/null; then | |
| cp dist/linux/*.metadata.json release-assets/ | |
| fi | |
| if compgen -G 'dist/linux/*.diagnostics.txt' > /dev/null; then | |
| cp dist/linux/*.diagnostics.txt release-assets/ | |
| fi | |
| - name: Publish Linux Release Assets | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: release-assets/* |