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: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: archlinux:latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Dependencies | |
| run: pacman -Syu --noconfirm shellcheck | |
| - name: Check Bash syntax | |
| run: bash -n installer.sh | |
| - name: Run ShellCheck | |
| run: shellcheck -S style installer.sh | |
| build: | |
| needs: lint | |
| if: startsWith(github.ref, 'refs/tags/') | |
| runs-on: ubuntu-latest | |
| container: | |
| image: archlinux:latest | |
| options: --privileged | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - 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 | |
| run: | | |
| cd ./iso | |
| SNAPSHOT_VERSION=${{ env.SNAPSHOT_VERSION }} bash build.sh | |
| - name: Upload Release dir to GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: ./iso/release/* | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |