Merge pull request #22 from JvPeek/develop #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |