2023-04-20 03:21:15 +00:00
|
|
|
name: Release
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
- "develop-*"
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Set Repo Origin
|
2023-04-20 07:53:15 +00:00
|
|
|
run: git remote set-url origin https://git.lumeweb.com/LumeWeb/relay.git
|
2023-04-20 03:21:15 +00:00
|
|
|
- uses: webfactory/ssh-agent@v0.7.0
|
|
|
|
with:
|
|
|
|
ssh-private-key: ${{ secrets.GITEA_SSH_KEY }}
|
|
|
|
- name: Setup Node.js
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: "lts/*"
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
2023-04-21 08:01:08 +00:00
|
|
|
- name: Build
|
2023-04-22 02:34:44 +00:00
|
|
|
run: set -x; npm run build
|
2023-04-20 03:21:15 +00:00
|
|
|
- name: Release
|
|
|
|
run: npx semantic-release
|
2023-04-21 23:31:57 +00:00
|
|
|
env:
|
|
|
|
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
|