-
Notifications
You must be signed in to change notification settings - Fork 65
68 lines (57 loc) · 1.91 KB
/
prerelease.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Prerelease Publisher
on:
workflow_dispatch:
push:
branches:
- main
- develop
jobs:
pre-release-build:
name: 'Build & Create Pre-Release'
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: Setup Node and Yarn Cache
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: 'yarn'
- name: Get variables
id: get_vars
run: |
echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-7)" >> $GITHUB_ENV
echo "::set-output name=SHORT_SHA::$(git rev-parse --short HEAD)"
echo "::set-output name=BRANCH_NAME::$(echo ${GITHUB_REF#refs/heads/})"
- name: Install main deps
run: yarn --frozen-lockfile
- name: Translations
env:
LOCALAZY_READ_KEY: a8269809765126758267-f01743c76d6e9e434d7b4c6322938eefce8d82a559b57efc2acfcf4531d46089
run: |
yarn translations:pull
yarn translations:generate-index
- name: Install src deps
working-directory: src
run: yarn --frozen-lockfile
- name: Install web deps
working-directory: web
run: yarn --frozen-lockfile
- name: Create pre-release
run: |
chmod +x "./scripts/prerelease.sh"
yarn pre-release
- name: Create Release & Changelog
uses: 'marvinpinto/[email protected]'
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
title: Pre-Release Build (${{ steps.get_vars.outputs.SHORT_SHA }})
prerelease: true
automatic_release_tag: unstable-${{ steps.get_vars.outputs.BRANCH_NAME }}
files: ./temp/pefcl-pre-${{ steps.get_vars.outputs.SHORT_SHA }}.zip
env:
CI: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}