This repository has been archived by the owner on May 18, 2024. It is now read-only.
ClearWSL Build #66
This file contains 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: "ClearWSL Weekly Build" | |
on: | |
push: | |
branches: [ main ] | |
# Trigger only when Makefile is changed | |
paths: ['Makefile'] | |
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 | |
# Skip build with [ci skip] in commit | |
if: "! contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v4 | |
with: | |
ref: 'main' | |
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. | |
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. | |
- run: mkdir -p release | |
- name: install dependencies | |
run: sudo apt install -y curl libarchive-tools jq tar unzip xz-utils | |
- name: build package & make hash | |
run: | | |
sudo make | |
sudo make clean | |
sha512sum Clear.zip > Clear.zip.sha512 | |
mv Clear.zip* release/ | |
- name: save release as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
retention-days: 10 | |
name: Clear-packed.zip | |
path: release | |
- name: upload artifact to release | |
uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: True | |
prerelease: True | |
tag: "action-build" | |
omitBody: True | |
omitBodyDuringUpdate: True | |
omitNameDuringUpdate: True | |
artifacts: "release/Clear.zip*" | |
token: ${{ secrets.GITHUB_TOKEN }} |