-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
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 }}" |