fix: release workflow uses correct Wayland deps and st-wl binary #1
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: Release | |
| # Triggers on version tags: v1.2.3 | |
| # To release: git tag v1.2.3 && git push origin v1.2.3 | |
| on: | |
| push: | |
| tags: ["v*"] | |
| permissions: | |
| contents: write | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| build: | |
| name: Build st-smpl | |
| runs-on: ubuntu-latest | |
| container: | |
| image: archlinux:latest | |
| options: --privileged | |
| steps: | |
| - name: Install git | |
| run: pacman -Sy --noconfirm --needed git | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Configure git safe directory | |
| run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| - name: Install build dependencies | |
| run: | | |
| pacman -Syu --noconfirm --needed \ | |
| base-devel pkgconf \ | |
| fontconfig freetype2 \ | |
| wayland wayland-protocols libxkbcommon \ | |
| pixman \ | |
| harfbuzz \ | |
| imlib2 | |
| - name: Build | |
| run: make | |
| - name: Strip binary | |
| run: strip st-wl | |
| - name: Prepare release assets | |
| run: | | |
| VERSION="${GITHUB_REF_NAME#v}" | |
| cp st-wl "st-smpl-${VERSION}-x86_64" | |
| echo "BIN=st-smpl-${VERSION}-x86_64" >> "$GITHUB_ENV" | |
| echo "VERSION=$VERSION" >> "$GITHUB_ENV" | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: "st-smpl v${{ env.VERSION }}" | |
| generate_release_notes: true | |
| files: | | |
| ${{ env.BIN }} |