Create deploy_by_tag.yml #1
Workflow file for this run
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: Deploy by tag | |
on: | |
push: | |
tags: | |
- '*.*.*' | |
jobs: | |
deploy_web_by_tag: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
ref: ${{ github.ref_name }} | |
- name: Build for web release | |
env: | |
BASE_HREF: "/DST-Helper-web/" | |
run: flutter build web --base-href "${BASE_HREF}" | |
- name: Move to build dir for web | |
run: cd build/web | |
# - name: Commit the result of build | |
# env: | |
# COMMIT_MESSAGE: "Deploy ${{ github.ref_name }}" | |
# run: git add . && git commit -m "${COMMIT_MESSAGE}" | |
- name: Push directory to another repository | |
uses: cpina/[email protected] | |
env: | |
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} | |
with: | |
source-directory: 'build/web' | |
destination-github-username: 'woin2ee' | |
destination-repository-name: 'DST-Helper-web' | |
user-email: [email protected] | |
target-branch: main | |
commit-message: "Deploy ${{ github.ref_name }}" |