forked from blankoslo/blank.pizza
-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (52 loc) · 1.3 KB
/
versioning.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
name: Bump version
on:
pull_request:
types:
- closed
branches:
- main
paths:
- application/**
- infrastructure/**
- .github/workflows/versioning.yml
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.sha }}
fetch-depth: '0'
- name: Set up Node.js
uses: actions/setup-node@v3
- name: Install dependencies
run: npm install
working-directory: application/frontend
- name: Build bundle
run: npm run build:production
working-directory: application/frontend
env:
BACKEND_URI: https://api.bot.blank.pizza
- name: Remove build gitignore
run: rm public/.gitignore
working-directory: application/frontend
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated Build
branch: build
push_options: '--force'
create_branch: true
create-tag:
needs: build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
ref: build
fetch-depth: '0'
- name: Bump version and push tag
uses: anothrNick/github-tag-action@1.55.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BRANCH: build