-
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (56 loc) · 1.78 KB
/
Copy pathrelease.yaml
File metadata and controls
67 lines (56 loc) · 1.78 KB
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
name: Releases
on:
workflow_dispatch:
permissions:
contents: write
jobs:
release_and_deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- name: checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PA_TOKEN }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: yarn install
- name: Build
run: yarn build --if-present
- name: Linting
run: yarn lint
- name: Test
run: yarn test:cov
- name: 📂 Sync files (Deploy)
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: ${{ secrets.AMITRAIKWAR_FTP_SERVER }}
username: ${{ secrets.AMITRAIKWAR_FTP_ACCOUNT }}
password: ${{ secrets.AMITRAIKWAR_FTP_PASSWORD }}
local-dir: ./build/
server-dir: ./
- name: conventional changelog action
id: changelog
# https://github.com/TriPSs/conventional-changelog-action
uses: TriPSs/conventional-changelog-action@latest
with:
github-token: '${{ secrets.PA_TOKEN }}'
git-user-name: 'AR portfolio bot'
output-file: false
- name: create release
# https://github.com/actions/create-release
uses: softprops/action-gh-release@v1
if: ${{steps.changelog.outputs.skipped == 'false'}}
env:
GITHUB_TOKEN: ${{ secrets.PA_TOKEN }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
name: ${{ steps.changelog.outputs.tag }}
body: ${{steps.changelog.outputs.clean_changelog}}
draft: false
prerelease: false