Skip to content
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

Dev/main #436

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 28 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
---
name: "Upload all artifacts"

name: "Release"
on:
push:
tags:
"**"

workflow_dispatch:
inputs:
tag:
description: >
Tag, which is set by the this GitHub workflow.
Should follow SemVer and is not allowed to exist already.
required: true
type: string
jobs:
tests:
uses: ./.github/workflows/tests.yaml
Expand All @@ -15,8 +17,25 @@ jobs:
uses: ./.github/workflows/robotmk_build.yaml
release:
runs-on: ubuntu-latest
needs: [build_rcc, build_robotmk]
needs: [tests, build_rcc, build_robotmk]
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3

- run: zip -r executables.zip artifact
- name: Push release tag
run: |
git checkout main
git tag ${{ inputs.tag }}
git push --tags
- uses: ncipollo/[email protected]
with:
allowUpdates: false
artifacts: "executables.zip"
replacesArtifacts: true
removeArtifacts: true
prerelease: true
draft: true
artifactErrorsFailBuild: true
updateOnlyUnreleased: true
makeLatest: false
tag: ${{ inputs.tag }}
Loading