forked from OlivOS-Team/ChanceCustom
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 796 Bytes
/
ci.yml
File metadata and controls
32 lines (32 loc) · 796 Bytes
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
name: CI
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
env:
PACK_NAME: ""
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Pack
run: |
if [ ! $PACK_NAME ]; then
PACK_NAME=${GITHUB_REPOSITORY##*/}
fi
echo "PACK_NAME=$PACK_NAME" >> $GITHUB_ENV
cd $PACK_NAME
zip -r ../$PACK_NAME.opk ./
- name: Upload
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: ${{ env.PACK_NAME }}.opk
- name: Release
if: github.ref_type == 'tag'
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GH_TOKEN }}
files: ${{ env.PACK_NAME }}.opk