diff --git a/.github/workflows/build_linux.yml b/.github/workflows/build_linux.yml index 0f00c5e8..f9fd3ea4 100644 --- a/.github/workflows/build_linux.yml +++ b/.github/workflows/build_linux.yml @@ -54,13 +54,10 @@ jobs: uses: snapcore/action-build@v1 id: build - - name: Prepare Folder - run: | - mkdir -p ${{ github.workspace }}/output - - name: Move Snap working-directory: ${{ github.workspace }} run: | + mkdir -p ${{ github.workspace }}/output mv ${{ steps.build.outputs.snap }} ${{ github.workspace }}/output/LunaSea-Linux-amd64.snap - name: Upload Artifact diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9ce32a21..0933b772 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -31,6 +31,8 @@ on: required: true APPLE_TEAM_ID: required: true + DISCORD_WEBHOOK: + required: true GOOGLE_PLAY_API: required: true NETLIFY_AUTH_TOKEN: @@ -70,10 +72,10 @@ jobs: with: bundler-cache: true - - name: Download Android App Package + - name: Download Android App Bundle uses: actions/download-artifact@v3 with: - name: android-app-package + name: android-app-bundle path: ${{ github.workspace }}/output - name: Determine Release Channel @@ -155,6 +157,7 @@ jobs: APPLE_STORE_CONNECT_KEY_ID: ${{ secrets.APPLE_STORE_CONNECT_KEY_ID }} APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} run: | + bundle install bundle exec fastlane deploy groups:${{ steps.channel.outputs.result }} pkg:${{ github.workspace }}/output/LunaSea-macOS.pkg macos_app_store: @@ -345,3 +348,13 @@ jobs: AWS_REGION: ${{ secrets.S3_REGION }} SOURCE_DIR: ${{ github.workspace }}/output DEST_DIR: ${{ inputs.build_title }} + + - name: Send Discord Message + uses: Ilshidur/action-discord@0.3.2 + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + DISCORD_USERNAME: 'LunaSea Support' + DISCORD_AVATAR: 'https://raw.githubusercontent.com/JagandeepBrar/LunaSea/master/assets/icon/icon.png' + DISCORD_EMBEDS: '[{"title": "New Build Available","description": "${{ inputs.build_title }}","color": "4ECCA3","url": "https://builds.lunasea.app/#${{ inputs.build_title }}","fields": [{"name": "Flavor","value": "${{ inputs.build_flavor }}"},{"name": "Commit","value": "${{ github.sha }}"}]}]' + with: + args: '' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4f5aee12..b68dc6a9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -130,6 +130,7 @@ jobs: APPLE_STORE_CONNECT_KEY_FILEPATH: ${{ secrets.APPLE_STORE_CONNECT_KEY_FILEPATH }} APPLE_STORE_CONNECT_KEY_ID: ${{ secrets.APPLE_STORE_CONNECT_KEY_ID }} APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} GOOGLE_PLAY_API: ${{ secrets.GOOGLE_PLAY_API }} NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} SNAPCRAFT_TOKEN: ${{ secrets.SNAPCRAFT_TOKEN }}