This commit is contained in:
parent
047174291b
commit
ee1d53a15c
1 changed files with 41 additions and 0 deletions
41
.gitea/workflows/release_amd.yml
Normal file
41
.gitea/workflows/release_amd.yml
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
name: Outbag
|
||||||
|
|
||||||
|
on: [tag]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
mkdir build
|
||||||
|
npm run bundleRelease
|
||||||
|
|
||||||
|
- name: Build AMD
|
||||||
|
run: |
|
||||||
|
npm run build-amd
|
||||||
|
mkdir upload
|
||||||
|
cp build/bin/* upload
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
id: create_release
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
with:
|
||||||
|
tag_name: ${{ github.event.release.tag_name }}
|
||||||
|
release_name: ${{ github.event.release.name }}
|
||||||
|
draft: false
|
||||||
|
prerelease: true
|
||||||
|
|
||||||
|
- name: Upload Release Asset
|
||||||
|
id: upload-release-asset
|
||||||
|
uses: actions/release-action@main
|
||||||
|
with:
|
||||||
|
files: upload/*
|
||||||
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
Loading…
Reference in a new issue