Skip to content

Commit

Permalink
Add publish-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lszeremeta committed Apr 18, 2021
1 parent c802353 commit 339addd
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 35 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish release

on:
release:
types: [published]

jobs:
release-deploy:
name: Release deploy
runs-on: ubuntu-latest
needs: test

steps:
- name: Get latest code
uses: actions/checkout@v2
- name: Turnstyle
uses: softprops/turnstyle@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME_RELEASE }}
password: ${{ secrets.FTP_PASSWORD_RELEASE }}
protocol: ftps
exclude: .git*
- .git*/**
- **/.git*/**
- .dockerignore
- logo/raw-svg
- logo/raw-svg/*
- logo/megen.png
- Dockerfile
- tests
- tests/*
- LICENSE
- README.md
- stack.yml
security: strict
Original file line number Diff line number Diff line change
Expand Up @@ -45,38 +45,3 @@ jobs:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
draft: true


release-deploy:
name: Release deploy
runs-on: ubuntu-latest
needs: test

steps:
- name: Get latest code
uses: actions/checkout@v2
- name: Turnstyle
uses: softprops/turnstyle@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME_RELEASE }}
password: ${{ secrets.FTP_PASSWORD_RELEASE }}
protocol: ftps
exclude: .git*
- .git*/**
- **/.git*/**
- .dockerignore
- logo/raw-svg
- logo/raw-svg/*
- logo/megen.png
- Dockerfile
- tests
- tests/*
- LICENSE
- README.md
- stack.yml
security: strict

0 comments on commit 339addd

Please sign in to comment.