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: Build & Release Arch OS ISO | |
| on: | |
| push: | |
| tags: | |
| - "*" | |
| # branches: | |
| # - "dev" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: archlinux:latest | |
| options: --privileged | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set Environment | |
| run: echo "SNAPSHOT_VERSION=${GITHUB_REF_NAME}" >> $GITHUB_ENV | |
| env: | |
| GITHUB_REF_NAME: ${{ github.ref_name }} | |
| - name: Install Dependencies | |
| run: pacman -Syu --noconfirm archiso sudo | |
| - name: Build Arch OS ISO | |
| env: | |
| SNAPSHOT_VERSION: ${{ env.SNAPSHOT_VERSION }} | |
| run: | | |
| cd ./iso | |
| SNAPSHOT_VERSION=${SNAPSHOT_VERSION} bash build.sh | |
| - name: Upload Arch OS ISO to Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: archos-${{ env.SNAPSHOT_VERSION }}-x86_64 | |
| path: ./iso/archiso/out/*.iso | |
| - name: Upload Arch OS ISO to Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: ./iso/archiso/out/*.iso | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |