Vmeda.Online/.github/workflows/release.yml

35 lines
787 B
YAML
Raw Normal View History

name: Release
2021-05-10 14:11:01 +00:00
on:
workflow_dispatch:
inputs:
release_type:
description: 'Final release or beta'
required: true
type: choice
options:
- final
- beta
2021-05-10 14:11:01 +00:00
jobs:
2023-03-23 11:56:11 +00:00
release:
if: github.repository == 'moodlemobile/moodleapp'
2021-05-10 14:11:01 +00:00
runs-on: ubuntu-latest
env:
RELEASE_TYPE: ${{ github.event.inputs.release_type || 'final' }}
2021-05-10 14:11:01 +00:00
steps:
- uses: actions/checkout@v4
2021-05-10 14:11:01 +00:00
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install npm packages
run: npm ci --no-audit
- name: Create release tags
2021-05-10 14:11:01 +00:00
env:
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
run: ./.github/scripts/release.sh $RELEASE_TYPE