Skip to content

Commit

Permalink
chore: download artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy committed Nov 15, 2023
1 parent a8904c4 commit 2ea2606
Showing 1 changed file with 22 additions and 25 deletions.
47 changes: 22 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,19 @@ jobs:
echo "::set-output name=version::$VERSION"
echo "::set-output name=branch_name::$BRANCH_NAME"
- name: Checkout
uses: actions/checkout@v2
- name: Checkout source code
uses: actions/checkout@v3
with:
repository: AppFlowy-IO/AppFlowy
ref: ${{ steps.parse_tag.outputs.branch_name }}

- name: Create release notes
id: create_release_notes
run: |
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
working-directory: AppFlowy

- name: Create release
id: create_release
Expand All @@ -65,13 +69,12 @@ jobs:
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
working-directory: AppFlowy/frontend/appflowy_flutter

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

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

steps:
- 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@v2
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: env-file
path: frontend/appflowy_flutter
name: appflowy-repo
path: .

- name: Install flutter
uses: subosito/flutter-action@v2
Expand Down Expand Up @@ -166,11 +163,11 @@ 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:
- name: Checkout source code
uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
repository: AppFlowy-IO/AppFlowy
ref: ${{ needs.prepare.outputs.branch_name }}
name: appflowy-repo
path: .

- name: Download .env file
uses: actions/download-artifact@v2
Expand Down Expand Up @@ -265,11 +262,11 @@ 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:
- name: Checkout source code
uses: actions/checkout@v3
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
repository: AppFlowy-IO/AppFlowy
ref: ${{ needs.prepare.outputs.branch_name }}
name: appflowy-repo
path: .

- name: Download .env file
uses: actions/download-artifact@v2
Expand Down

0 comments on commit 2ea2606

Please sign in to comment.