Merge branch 'develop' #6
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: Flutter action | |
uses: subosito/[email protected] | |
with: | |
channel: stable | |
- run: flutter --version | |
- name: Build for web release | |
env: | |
BASE_HREF: "/DST-Helper-web/" | |
run: | | |
flutter pub get | |
dart run build_runner build | |
flutter build web --base-href "${BASE_HREF}" | |
- name: Copy `README.md` to the build dir | |
run: cp README_web.md build/web/README.md | |
- name: Move to build dir for web | |
run: cd build/web | |
- 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 }}" |