-
Notifications
You must be signed in to change notification settings - Fork 49
Upload Binaries On Tag #3932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
krzywon
wants to merge
2
commits into
main
Choose a base branch
from
upload-on-tag
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Upload Binaries On Tag #3932
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| name: release.yml | ||
| on: | ||
| release | ||
| jobs: | ||
|
|
||
| #Reuse ci.yml workflow on main branch and upload artifacts to release page | ||
| reuse_main_ci: | ||
| uses: ./.github/workflows/ci.yml | ||
| secrets: inherit | ||
|
|
||
| upload_nightly_builds: | ||
|
|
||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| os: [ubuntu-latest] | ||
| needs: reuse_main_ci | ||
|
|
||
| env: | ||
| GH_REPO: ${{ github.repository }} | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| steps: | ||
| - name: Retrieve saved artifacts | ||
| uses: actions/download-artifact@v8 | ||
|
|
||
| - name: Display structure of downloaded files | ||
| run: ls -R | ||
| working-directory: . | ||
|
|
||
| - name: Copy wheel | ||
| run: | | ||
| mv build-dependency-*-wheel/*.whl ./ | ||
|
|
||
| - name: Rename artifacts | ||
| run: | | ||
| mv SasView-Installer-windows*/setupSasView.exe ./SasView-${{ github.event.release.tag_name }}-Win64.exe | ||
| mv SasView-Installer-macos*/SasView6-*.dmg ./SasView-${{ github.event.release.tag_name }}-*.dmg | ||
| for file in $(ls *.dmg); do | ||
| mv $file ${file/SasView6-/SasView-nightly-MacOSX-} | ||
| done | ||
| mv SasView-Installer-ubuntu*/SasView6.tar.gz ./SasView-${{ github.event.release.tag_name }}-Ubuntu22.04.tar.gz | ||
|
|
||
| - name: Clean out old release | ||
| run: | | ||
| gh release delete nightly-build --cleanup-tag --yes || true | ||
|
|
||
| - name: Upload Nightly Build Installer to GitHub releases | ||
| uses: ncipollo/release-action@v1 | ||
| with: | ||
| allowUpdates: true | ||
| replacesArtifacts: true | ||
| omitBodyDuringUpdate: true | ||
| omitDraftDuringUpdate: true | ||
| omitNameDuringUpdate: true | ||
| omitPrereleaseDuringUpdate: true | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| artifacts: "*.exe, *.dmg, *.tar.gz, *.whl" | ||
| tag: ${{ github.event.release.tag_name }} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.