actions-test/.gitea/workflows/release_code.yml
jusax23 ac6d6e81d2
Some checks failed
Outbag Tests / test (push) Has been cancelled
Outbag AMD Release / release-amd (push) Successful in 29s
Outbag Code release / release-amd (push) Successful in 16s
release amd, code
2024-02-25 15:33:06 +01:00

43 lines
1 KiB
YAML

name: Outbag Code release
on:
push:
tags:
- v*
jobs:
release-amd:
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
id: gitea-release
uses: akkuman/gitea-release-action@v1
with:
files: |
upload/**
api_key: '${{ secrets.RELEASE_TOKEN }}'