-
Notifications
You must be signed in to change notification settings - Fork 12
52 lines (44 loc) · 1.08 KB
/
cd.yml
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
47
48
49
50
51
52
name: cd
on:
workflow_dispatch:
inputs:
version:
required: true
permissions:
contents: read
concurrency:
group: v${{ inputs.version }}
cancel-in-progress: true
jobs:
qa:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- [self-hosted, macOS, ARM64]
- [self-hosted, linux, ARM64]
steps:
- uses: actions/checkout@v4
- uses: pkgxdev/dev@v0
- run: deno task dnt
attach:
runs-on: ubuntu-latest
needs: qa
steps:
- uses: actions/checkout@v4
- uses: pkgxdev/dev@v0
- run: deno task dnt ${{ inputs.version }} --no-test
- run: |
mv dist libpkgx-${{inputs.version}}
tar cJf libpkgx-${{ inputs.version }}.tar.xz libpkgx-${{inputs.version}}
- name: attach to release
run:
gh release upload
--clobber
v${{ inputs.version }}
libpkgx-${{ inputs.version }}.tar.xz
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_REPO: pkgxdev/libpkgx