-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 926 Bytes
/
Release.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
name: Automatic build.
on:
workflow_dispatch:
pull_request:
types:
- closed
jobs:
build:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
pull-requests: write
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: npm run actions:install
- name: Build
run: npm run build # Replace this with the command to build your JavaScript files
- name: Create a new branch
run: |
git checkout -b release/`date +%Y-%m-%dT%H.%M.%S`
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add .
git commit -m "Release Ibiss"
git push --set-upstream origin release/`date +%Y-%m-%dT%H.%M.%S`