Build DevuanWSL #44
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 DevuanWSL | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| branches: [main] | |
| paths: [.mise.toml] # trigger only on build file change | |
| workflow_dispatch: | |
| schedule: | |
| # trigger on the 1st day of every month at 12:00 UTC | |
| - cron: 0 12 1 * * | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout repo | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: main | |
| persist-credentials: false | |
| fetch-depth: 0 # required to push refs | |
| - name: setup mise | |
| id: setup-mise | |
| uses: jdx/mise-action@v4 | |
| - name: build | |
| run: | | |
| mkdir -p release | |
| sudo apt install -y curl pigz tar unzip zip | |
| mise run download | |
| mise run "build:*" | |
| mv Devuan.* release/ | |
| - name: upload as artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| retention-days: 90 | |
| path: release/* | |
| - name: upload as release | |
| run: gh release upload "${TAG}" --clobber release/Devuan.* | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| TAG: action-build |