Skip to content

Commit

Permalink
add publish-fedora to publish flow
Browse files Browse the repository at this point in the history
  • Loading branch information
filfreire committed Oct 19, 2022
1 parent 853781f commit bac6e22
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,32 @@ jobs:
git push "${remote_repo}"
env:
RELEASE_GH_TOKEN: ${{ secrets.RELEASE_GH_TOKEN }}

publish-fedora:
needs: publish
runs-on: ubuntu-latest
steps:
- name: Checkout branch # Check out the release branch
uses: actions/checkout@v3
with:
ref: ${{ env.RELEASE_BRANCH }}
fetch-depth: 0
persist-credentials: false

- name: Build Insomnia from sources for Fedora
run: |
docker build --tag fedora-insomnia-builder:latest -f fedora.Dockerfile .
docker create --name builder fedora-insomnia-builder:latest
docker cp builder:/insomnia/packages/insomnia/dist ./artifacts/
docker rm -f builder
- name: Upload artifacts to release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ steps.core_tag_and_release.outputs.id }}
tag_name: ${{ env.RELEASE_CORE_TAG }}
file: "./artifacts/**.rpm"
prerelease: ${{ env.IS_PRERELEASE }}
draft: false
1 change: 1 addition & 0 deletions packages/insomnia/electron-builder.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ const { env: { BUILD_TARGETS, BUILD_DEPS_FROM_SOURCE }, platform } = process;
const targets = BUILD_TARGETS?.split(',');
if (BUILD_DEPS_FROM_SOURCE) {
config.buildDependenciesFromSource = true;
config.linux.artifactName = `${BINARY_PREFIX}-\${version}-fromSource.\${ext}`;
}
if (platform && targets) {
console.log('overriding build targets to: ', targets);
Expand Down

0 comments on commit bac6e22

Please sign in to comment.