release actions
Some checks failed
Tag Action / test (push) Failing after 37s
Tag Action / release_code (push) Has been skipped
Tag Action / release_amd (push) Has been skipped

This commit is contained in:
jusax23 2024-02-25 19:51:14 +01:00
parent 047174291b
commit fb1f41f61c
Signed by: jusax23
GPG key ID: 4A6CED31031AE931
6 changed files with 112 additions and 1 deletions

View file

@ -0,0 +1,11 @@
name: Push Action
on:
push:
branches:
- '!**'
jobs:
test:
uses: ./.gitea/workflows/test.yml

View file

@ -0,0 +1,16 @@
name: Tag Action
on:
push:
tags:
- v*
jobs:
test:
uses: ./.gitea/workflows/test.yml
release_code:
needs: test
uses: ./.gitea/workflows/release_code.yml
release_amd:
needs: [test, release_code]
uses: ./.gitea/workflows/release_amd.yml

View file

@ -0,0 +1,36 @@
name: Outbag AMD Release
on:
workflow_call:
inputs:
secrets:
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 bundleRelease
- name: Build AMD
run: |
npm run build-amd
mkdir upload
cp build/bin/* upload
- name: Create Release AMD
id: gitea-release-amd
uses: https://gitea.com/actions/release-action@main
with:
files: |
upload/**
api_key: '${{ secrets.RELEASE_TOKEN }}'

View file

@ -0,0 +1,43 @@
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 }}'

View file

@ -1,6 +1,9 @@
name: Outbag Tests name: Outbag Tests
on: [push] on:
workflow_call:
inputs:
secrets:
jobs: jobs:
test: test:

View file

@ -171,6 +171,7 @@ export const remote1: Act = {
var tagAcert = `${data.name}@${server.host}:${server.port}-${data.publicKey}`; var tagAcert = `${data.name}@${server.host}:${server.port}-${data.publicKey}`;
if (!(await verify(tagAcert, data.sign, cert))) { if (!(await verify(tagAcert, data.sign, cert))) {
client.suspect(); client.suspect();
console.log("sig");
aws("error", act_error.SIGNATURE); aws("error", act_error.SIGNATURE);
return; return;
} }
@ -182,6 +183,7 @@ export const remote1: Act = {
client.remoteKey = data.publicKey; client.remoteKey = data.publicKey;
aws("ok", { challenge: client.challenge }); aws("ok", { challenge: client.challenge });
} catch (e) { } catch (e) {
console.log("err");
client.suspect(); client.suspect();
aws("error", act_error.SIGNATURE); aws("error", act_error.SIGNATURE);
} }