forked from Externalizable/bongo.cat
-
Notifications
You must be signed in to change notification settings - Fork 10
66 lines (62 loc) · 2.23 KB
/
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
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
name: Release
on:
push:
branches:
- 'master'
paths:
- 'src/**'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "deploy"
release:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3
with:
# Full git history is needed to get a proper
# list of changed files within `super-linter`
fetch-depth: 0
# Runs a single command using the runners shell
- name: FTP Deploy
# You may pin to the exact commit or the version.
# uses: SamKirkland/FTP-Deploy-Action@8a24039354ee91000cb948cb4a1dbdf1a1b94a3c
uses: SamKirkland/[email protected]
with:
# ftp server
server: jvpeek.de
# ftp username
username: ${{ secrets.FTPUSER }}
# ftp password
password: ${{ secrets.FTPPASS }}
local-dir: ./src/
# protocol to deploy with - ftp, ftps, or ftps-legacy
protocol: ftps # optional
# Prints which modifications will be made with current config options, but doesnt actually make any changes
dry-run: false # optional
# Deletes ALL contents of server-dir, even items in excluded with exclude argument
dangerous-clean-slate: false # optional
- name: Changelog
uses: ardalanamini/auto-changelog@v4
id : changelog
with:
github-token : ${{ secrets.GITHUB_TOKEN }}
mention-authors : true
mention-new-contributors: true
include-compare-link : true
include-pr-links : true
include-commit-links : true
use-github-autolink : true
semver : false
release-name: ${{ format('v{0}', github.run_number) }}
- name: Create Release
uses: ncipollo/release-action@v1
env :
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body : |
${{ steps.changelog.outputs.changelog }}
tag: ${{ format('v{0}', github.run_number) }}
commit: master