-
-
Notifications
You must be signed in to change notification settings - Fork 239
40 lines (38 loc) · 1.11 KB
/
dev.yml
File metadata and controls
40 lines (38 loc) · 1.11 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
name: Development pipeline
on:
push:
branches:
- main
- ptr
- beta
- alpha
tags-ignore:
- '**'
jobs:
release:
if: github.repository == 'tukui-org/ElvUI'
name: Publish development build to CDN
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
runs-on: ubuntu-latest
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
steps:
- name: Clone project
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Workaround checkout issues
run: |
git fetch --tags --force
- name: Create Package
uses: BigWigsMods/packager@v2
with:
args: -n "{package-name}-$GITHUB_REF_NAME-{project-version}"
- name: Get package name
run: |
echo "PACKAGE=$(find .release -type f -name *.zip -printf "%f\n")" >> $GITHUB_ENV
- name: Publish package
run: |
curl https://api.tukui.org/v1/upload/dev/$PACKAGE --silent --show-error --fail --upload-file .release/$PACKAGE -H "X-Tukui-Key: $DEPLOY_KEY" -H "Content-Type: application/zip"