forked from VPraharsha03/DevuanWSL
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (38 loc) · 1 KB
/
Copy pathbuild.yml
File metadata and controls
41 lines (38 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build DevuanWSL
permissions:
contents: write
on:
push:
branches: [main]
paths: [Makefile] # trigger only on Makefile 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@v5
with:
ref: main
persist-credentials: false
fetch-depth: 0 # required to push refs
- name: build
run: |
mkdir -p release
sudo apt install -y curl libarchive-tools jq tar unzip
sudo make
sudo make clean
mv Devuan.zip* release/
- name: upload as artifact
uses: actions/upload-artifact@v4
with:
retention-days: 90
path: release/*
- name: upload as release
run: gh release upload "${TAG}" --clobber release/Devuan.zip*
env:
GH_TOKEN: ${{ github.token }}
TAG: action-build