forked from VPraharsha03/DevuanWSL
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (41 loc) · 1.08 KB
/
Copy pathbuild.yml
File metadata and controls
46 lines (41 loc) · 1.08 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
42
43
44
45
46
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@v7
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