ci: update ci config as it is too custom to use the template

This commit is contained in:
Derrick Hammer 2023-06-25 23:59:23 -04:00
parent a0c131ffb7
commit 589821c570
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 45 additions and 4 deletions

View File

@ -6,8 +6,49 @@ on:
- master - master
- develop - develop
- develop-* - develop-*
jobs: jobs:
main: build:
uses: lumeweb/github-node-deploy-workflow/.github/workflows/main.yml@master runs-on: ubuntu-latest
secrets: inherit steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.GITEA_SSH_KEY }}
known_hosts: ${{ secrets.GITEA_KNOWN_HOST }}
- name: Setup Golang
run: |
sudo apt-get update;
sudo apt-get install bison;
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer);
source ~/.gvm/scripts/gvm;
gvm install go1.4 -B;
gvm use go1.4 --default;
gvm install go1.19 -B;
VERSION=0.28.1;
TINYGO="tinygo_${VERSION}_amd64.deb";
wget https://github.com/tinygo-org/tinygo/releases/download/v$VERSION/$TINYGO;
sudo dpkg -i $TINYGO && rm $TINYGO;
- name: Fetch Wasm Deps
run: |
source ~/.gvm/scripts/gvm;
gvm use go1.19 --default;
cd src/golang;
go get;
- name: Publish
run: npm run semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled && failure() }}
with:
limit-access-to-actor: true