Skip to content

Commit

Permalink
chore(actions): future fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Jan 4, 2024
1 parent d2dc552 commit 4341f5c
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,26 @@ jobs:
dotnet-version: |
8.0.100
7.0.404
- name: Set outputs
if: ${{ github.event.inputs.packages_to_release == 'DisCatSharp' }}
id: vars
run: |
echo "version=10.6.0" >> $GITHUB_OUTPUT
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- name: "Create Sentry prod release"
if: ${{ !inputs.release_as_prerelease && github.event.inputs.packages_to_release == 'DisCatSharp' }}
uses: getsentry/[email protected]
with:
environment: prod
ignore_missing: true
version: DisCatSharp@${{ steps.vars.outputs.version }}+${{ steps.vars.outputs.sha }}
- name: "Create Sentry dev release"
if: ${{ inputs.release_as_prerelease && github.event.inputs.packages_to_release == 'DisCatSharp' }}
uses: getsentry/[email protected]
with:
environment: dev
ignore_missing: true
version: DisCatSharp@${{ steps.vars.outputs.version }}-${{ github.event.inputs.version_suffix }}+${{ steps.vars.outputs.sha }}
- name: Restore dependencies (DisCatSharp)
if: ${{ github.event.inputs.packages_to_release == 'DisCatSharp' }}
run: dotnet restore --no-cache -f -v minimal DisCatSharp.sln
Expand Down Expand Up @@ -106,23 +126,3 @@ jobs:
shell: pwsh
run: dotnet nuget push --source https://nuget.pkg.github.com/Aiko-IT-Systems/index.json -k ${{secrets.NYUW_TOKEN_GH}} *
working-directory: ./dcs-artifacts
- name: Set outputs
if: ${{ github.event.inputs.packages_to_release == 'DisCatSharp' }}
id: vars
run: |
echo "version=10.6.0" >> $GITHUB_OUTPUT
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- name: "Create Sentry prod release"
if: ${{ !inputs.release_as_prerelease && github.event.inputs.packages_to_release == 'DisCatSharp' }}
uses: getsentry/[email protected]
with:
environment: prod
ignore_missing: true
version: DisCatSharp@${{ steps.vars.outputs.version }}+${{ steps.vars.outputs.sha }}
- name: "Create Sentry dev release"
if: ${{ inputs.release_as_prerelease && github.event.inputs.packages_to_release == 'DisCatSharp' }}
uses: getsentry/[email protected]
with:
environment: dev
ignore_missing: true
version: DisCatSharp@${{ steps.vars.outputs.version }}-${{ github.event.inputs.version_suffix }}+${{ steps.vars.outputs.sha }}

0 comments on commit 4341f5c

Please sign in to comment.