Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy committed Nov 15, 2023
1 parent 8084d00 commit 7e3cd84
Showing 1 changed file with 28 additions and 23 deletions.
51 changes: 28 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ jobs:
repository: AppFlowy-IO/AppFlowy
ref: ${{ steps.parse_tag.outputs.branch_name }}

- name: Checkout source code
run: ls -al

- name: Create Env file
run: |
cp dev.env .env
Expand All @@ -53,13 +50,11 @@ jobs:
sed -i 's|APPFLOWY_CLOUD_WS_BASE_URL=.*|APPFLOWY_CLOUD_WS_BASE_URL=${{ secrets.APPFLOWY_CLOUD_WS_BASE_URL }}|' .env
sed -i 's|APPFLOWY_CLOUD_GOTRUE_URL=.*|APPFLOWY_CLOUD_GOTRUE_URL=${{ secrets.APPFLOWY_CLOUD_GOTRUE_URL }}|' .env
fi
cat .env
working-directory: frontend/appflowy_flutter

- name: Create release notes
id: create_release_notes
run: |
ls -al
RELEASE_NOTES=$(cat CHANGELOG.md | sed -e '/./{H;$!d;}' -e "x;/##\ Version\ ${{ steps.parse_tag.outputs.version }}/"'!d;')
echo "::set-output name=release_notes::$RELEASE_NOTES"
shell: bash
Expand All @@ -76,8 +71,8 @@ jobs:

- uses: actions/upload-artifact@v3
with:
name: appflowy-repo
path: ./
name: appflowy-env-file
path: frontend/appflowy_flutter/.env

build-for-windows:
name: ${{ matrix.job.target }} (${{ matrix.job.os }}) ${{ matrix.environment }}
Expand All @@ -96,11 +91,17 @@ jobs:
WINDOWS_INSTALLER_NAME: ${{ matrix.environment }}_AppFlowy_${{ github.ref_name }}_windows-x86_64

steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- name: Checkout source code
uses: actions/checkout@v3
with:
repository: AppFlowy-IO/AppFlowy
ref: ${{ needs.prepare.outputs.branch_name }}

- name: Download .env file
uses: actions/download-artifact@v3
with:
name: appflowy-repo
path: .
name: appflowy-env-file
path: frontend/appflowy_flutter

- name: Install flutter
uses: subosito/flutter-action@v2
Expand Down Expand Up @@ -166,18 +167,22 @@ jobs:
MACOS_APP_RELEASE_PATH: frontend/appflowy_flutter/product/${{ needs.prepare.outputs.version }}/macos/Release
MACOS_DMG_NAME: ${{ matrix.environment }}_AppFlowy_${{ github.ref_name }}_macos-x86_64
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- name: Checkout source code
uses: actions/checkout@v3
with:
name: appflowy-repo
path: .
repository: AppFlowy-IO/AppFlowy
ref: ${{ needs.prepare.outputs.branch_name }}

- name: Download .env file
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: env-file
name: appflowy-env-file
path: frontend/appflowy_flutter

- name: Check .env file
working-directory: frontend/appflowy_flutter
run: cat .env

- name: Install flutter
uses: subosito/flutter-action@v2
with:
Expand Down Expand Up @@ -265,16 +270,16 @@ jobs:
LINUX_PACKAGE_RPM_NAME: ${{ matrix.environment }}-AppFlowy-${{ needs.prepare.outputs.version }}-linux-x86_64.rpm
LINUX_PACKAGE_TMP_RPM_NAME: AppFlowy-${{ needs.prepare.outputs.version }}-2.x86_64.rpm
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- name: Checkout source code
uses: actions/checkout@v3
with:
name: appflowy-repo
path: .
repository: AppFlowy-IO/AppFlowy
ref: ${{ needs.prepare.outputs.branch_name }}

- name: Download .env file
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: env-file
name: appflowy-env-file
path: frontend/appflowy_flutter

- name: Install flutter
Expand Down

0 comments on commit 7e3cd84

Please sign in to comment.