forked from moodlehq/moodleapp
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 787 Bytes
/
release.yml
File metadata and controls
34 lines (31 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Release
on:
workflow_dispatch:
inputs:
release_type:
description: 'Final release or beta'
required: true
type: choice
options:
- final
- beta
jobs:
release:
if: github.repository == 'moodlemobile/moodleapp'
runs-on: ubuntu-latest
env:
RELEASE_TYPE: ${{ github.event.inputs.release_type || 'final' }}
steps:
- uses: actions/checkout@v4
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
env:
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
run: ./.github/scripts/release.sh $RELEASE_TYPE