actions-test/.gitea/workflows/release_code.yml
jusax23 7c5866b2ad
Some checks failed
Tag Action / test (push) Successful in 39s
Tag Action / release_code (push) Failing after 24s
Tag Action / release_amd (push) Has been skipped
release actions
2024-02-25 20:00:35 +01:00

43 lines
1 KiB
YAML

name: Outbag Code release
on:
workflow_call:
inputs:
secrets:
jobs:
release-code:
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 prepublish
- name: Build Code
run: |
apt-get update
apt-get install zip tar -y
mkdir outbag_server
mkdir outbag_server/dist
mkdir upload
cp -r dist/* outbag_server/dist
cp package.json outbag_server
cp package-lock.json outbag_server
cp readme.md outbag_server
zip -r upload/OutbagServer.zip outbag_server/*
tar -czvf upload/OutbagServer.tar.gz outbag_server/*
- name: Create Release Code
id: gitea-release-code
uses: https://gitea.com/actions/release-action@main
with:
files: |
upload/**
api_key: '${{ secrets.RELEASE_TOKEN }}'