Skip to content

Commit

Permalink
Release version 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Smaug123 committed May 29, 2024
1 parent 4d41f4f commit 751b292
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/dotnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,37 +138,37 @@ jobs:
# - uses: actions/checkout@v4
# - uses: gaurav-nelson/github-action-markdown-link-check@v1

# nuget-publish:
# runs-on: ubuntu-latest
# if: ${{ !github.event.repository.fork && github.ref == 'refs/heads/main' }}
# needs: [all-required-checks-complete]
# environment: release
# steps:
# - name: Download NuGet artifact
# uses: actions/download-artifact@v4
# with:
# name: nuget-package
# - name: Publish to NuGet
# run: dotnet nuget push "ShapeSifter.*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
nuget-publish:
runs-on: ubuntu-latest
if: ${{ !github.event.repository.fork && github.ref == 'refs/heads/main' }}
needs: [all-required-checks-complete]
environment: release
steps:
- name: Download NuGet artifact
uses: actions/download-artifact@v4
with:
name: nuget-package
- name: Publish to NuGet
run: dotnet nuget push "ShapeSifter.*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

# github-tag-and-release:
# runs-on: ubuntu-latest
# if: ${{ !github.event.repository.fork && github.ref == 'refs/heads/main' }}
# needs: [all-required-checks-complete]
# environment: release
# steps:
# - name: Generate app token
# id: app-token
# uses: actions/create-github-app-token@v1
# with:
# app-id: ${{ secrets.APP_ID }}
# private-key: ${{ secrets.APP_PRIVATE_KEY }}
# - uses: actions/checkout@v4
# with:
# token: ${{ steps.app-token.outputs.token }}
# - name: Download NuGet artifact
# uses: actions/download-artifact@v4
# - name: Tag and release packages
# env:
# GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
# run: bash .github/workflows/tag.sh
github-tag-and-release:
runs-on: ubuntu-latest
if: ${{ !github.event.repository.fork && github.ref == 'refs/heads/main' }}
needs: [all-required-checks-complete]
environment: release
steps:
- name: Generate app token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
- name: Download NuGet artifact
uses: actions/download-artifact@v4
- name: Tag and release packages
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
run: bash .github/workflows/tag.sh
2 changes: 1 addition & 1 deletion ShapeSifter/version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.3",
"version": "1.0",
"publicReleaseRefSpec": [
"^refs/heads/main$"
]
Expand Down

0 comments on commit 751b292

Please sign in to comment.