Skip to content

Commit

Permalink
DO NOT MERGE: use dev flutter-release-action
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustl22 committed May 1, 2024
1 parent b08c88f commit 5405285
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 10 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/release-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ on:
tags:
- 'wrestling_scoreboard_client-*'
workflow_dispatch:
inputs:
app_version:
description: 'App version'
required: true
default: ''
type: string

jobs:
pre-run:
Expand All @@ -13,7 +19,7 @@ jobs:
steps:
- id: release-version
run: |
TAG="${{ github.ref_name }}"
TAG="${{ inputs.app_version || github.ref_name }}"
RELEASE_VERSION="${TAG#*wrestling_scoreboard_client-}"
echo "version=$RELEASE_VERSION" >> $GITHUB_OUTPUT
outputs:
Expand Down Expand Up @@ -70,10 +76,10 @@ jobs:
sudo apt-get install -y libunwind-dev
sudo apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
- name: Build
uses: oberhauser-dev/flutter-release-action@v0
uses: oberhauser-dev/flutter-release-action@dev
with:
working-directory: wrestling_scoreboard_client
dry-run: false
dry-run: true
app-name: 'wrestling_scoreboard_client'
app-version: ${{ needs.pre-run.outputs.release-version }}
tag: ${{ github.ref }}
Expand All @@ -90,7 +96,7 @@ jobs:
android-key-password: ${{ secrets.ANDROID_KEY_PASSWORD }}

publish-client:
needs: [ release-client, pre-run ]
needs: [ pre-run ] # release-client
name: Publish Client on ${{ matrix.publish-distributor }} (${{ matrix.platform }})
runs-on: ${{ matrix.os }}
defaults:
Expand Down Expand Up @@ -130,11 +136,18 @@ jobs:
sudo apt-get update
sudo apt-get install -y libunwind-dev
sudo apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
- name: Print ref and ref_name
run: |
echo "ref: ${{ github.ref }}"
echo "ref_name: ${{ github.ref_name }}"
- name: Print App version
run: |
echo "app_version: ${{ inputs.app_version }}"
- name: Publish
uses: oberhauser-dev/flutter-release-action@v0
uses: oberhauser-dev/flutter-release-action@dev
with:
working-directory: wrestling_scoreboard_client
dry-run: false
dry-run: true
app-name: 'wrestling_scoreboard_client'
app-version: ${{ needs.pre-run.outputs.release-version }}
tag: ${{ github.ref }}
Expand Down Expand Up @@ -167,3 +180,8 @@ jobs:
publish-web-ssh-port: ${{ secrets.WEB_SSH_PORT }}
publish-web-ssh-user: ${{ secrets.WEB_SSH_USER }}
publish-web-ssh-private-key-base64: ${{ secrets.WEB_SSH_PRIVATE_KEY }}
# - name: Setup tmate session
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
# with:
# limit-access-to-actor: true
14 changes: 10 additions & 4 deletions .github/workflows/release-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ on:
tags:
- 'wrestling_scoreboard_server-*'
workflow_dispatch:
inputs:
app_version:
description: 'App version'
required: true
default: ''
type: string

jobs:
pre-run:
Expand All @@ -13,7 +19,7 @@ jobs:
steps:
- id: release-version
run: |
TAG="${{ github.ref_name }}"
TAG="${{ inputs.app_version || github.ref_name }}"
RELEASE_VERSION="${TAG#*wrestling_scoreboard_server-}"
echo "version=$RELEASE_VERSION" >> $GITHUB_OUTPUT
outputs:
Expand Down Expand Up @@ -41,10 +47,10 @@ jobs:
channel: 'stable'
- uses: bluefireteam/melos-action@v3
- name: Release
uses: oberhauser-dev/dart-release-action@v0
uses: oberhauser-dev/dart-release-action@dev
with:
working-directory: wrestling_scoreboard_server
dry-run: false
dry-run: true
main-path: 'bin/server.dart'
app-name: 'wrestling_scoreboard_server'
app-version: ${{ needs.pre-run.outputs.release-version }}
Expand Down Expand Up @@ -74,7 +80,7 @@ jobs:
channel: 'stable'
- uses: bluefireteam/melos-action@v3
- name: Deploy
uses: oberhauser-dev/dart-release-action@v0
uses: oberhauser-dev/dart-release-action@dev
with:
working-directory: wrestling_scoreboard_server
dry-run: false
Expand Down

0 comments on commit 5405285

Please sign in to comment.