Skip to content

Commit

Permalink
ci: move release flow to manual workflow (#380)[skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
variar committed Aug 31, 2021
1 parent 88665c1 commit f9bec82
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: klogg_version
path: 'klogg_version.txt'
path: 'klogg_version.txt'
if-no-files-found: error

Linux:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
Expand Down Expand Up @@ -107,7 +108,8 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: packages-${{ matrix.config.artifacts_id }}-${{ matrix.config.arch }}
path: '${{ env.KLOGG_BUILD_ROOT }}/packages/*'
path: '${{ env.KLOGG_BUILD_ROOT }}/packages/*'
if-no-files-found: error

Mac:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
Expand Down Expand Up @@ -217,6 +219,7 @@ jobs:
with:
name: packages-${{ matrix.config.os }}-${{ matrix.config.arch }}
path: '${{ env.KLOGG_BUILD_ROOT }}/packages/*'
if-no-files-found: error

Windows:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
Expand Down Expand Up @@ -336,3 +339,4 @@ jobs:
with:
name: packages-${{ matrix.config.os }}-${{ matrix.config.arch }}
path: '${{ env.KLOGG_BUILD_ROOT }}/packages/*'
if-no-files-found: error
69 changes: 68 additions & 1 deletion .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,77 @@ jobs:
- name: Display structure of downloaded files
run: ls -R


- name: Setup Sentry CLI
uses: mathrix-education/setup-sentry-cli@0.1.0
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
with:
token: ${{ secrets.SENTRY_TOKEN }}
organization: anton-filimonov
project: klogg

- name: Create Sentry release
shell: sh
run: |
sentry-cli releases new $KLOGG_VERSION
sentry-cli releases set-commits --auto $KLOGG_VERSION
- name: Upload symbols linux
shell: sh
run: |
sentry-cli upload-dif ./packages-deb-x64/klogg_deb.sym
sentry-cli upload-dif ./packages-rpm-x64/klogg_rpm.sym
- name: Upload symbols mac
shell: sh
run: |
sentry-cli upload-dif ./packages-macos-x64/klogg.app/Contents/MacOS/klogg ./packages-macos-x64/klogg.dSym
- name: Upload symbols win x64
shell: sh
run: |
sentry-cli upload-dif ./packages-windows-x64/klogg-$KLOGG_VERSION-x64-pdb.zip
- name: Upload symbols win x86
shell: sh
run: |
sentry-cli upload-dif ./packages-windows-x86/klogg-$KLOGG_VERSION-x86-pdb.zip
- name: Release win
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: ${{ secrets.KLOGG_GITHUB_TOKEN }}
automatic_release_tag: continuous-win
prerelease: true
files: |
./packages-windows-x64/*
./packages-windows-x86/*
- name: Release linux
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: ${{ secrets.KLOGG_GITHUB_TOKEN }}
automatic_release_tag: continuous-linux
prerelease: true
files: |
./packages-deb-x64/*
./packages-rpm-x64/*
- name: Release mac
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: ${{ secrets.KLOGG_GITHUB_TOKEN }}
automatic_release_tag: continuous-osx
prerelease: true
files: ./packages-macos-x64/*

- name: Discord notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_NEW_VERSIONS_WEBHOOK }}
DISCORD_EMBEDS: { [{"title": "Windows", "url": "https://github.com/variar/klogg/releases/tag/continuous-win"}], [{"title": "Linux", "url": "https://github.com/variar/klogg/releases/tag/continuous-linux"}], [{"title": "Mac", "url": "https://github.com/variar/klogg/releases/tag/continuous-osx"}] }
uses: Ilshidur/action-discord@master
with:
args: 'New CI build {{KLOGG_VERSION}} has been released!'



Expand Down

0 comments on commit f9bec82

Please sign in to comment.