Skip to content

Commit

Permalink
Use tag
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hatano committed Nov 1, 2024
1 parent f01b1bc commit c427778
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 30 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,37 +49,9 @@ jobs:
git commit -m "Bump up version"
git tag ${{ needs.check-bump-version.outputs.new-version }}
git push --tags
git push origin master
- name: Create NuPkg
run: dotnet pack ./MustAwaitAnalyzer --include-symbols --configuration Release -o ./nupkg

- name: Publish NuPkg
run: dotnet nuget push ./nupkg/MustAwaitAnalyzer.*.symbols.nupkg -s https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_TOKEN }}

push:
needs: check-bump-version
if: ${{ needs.check-bump-version.outputs.new-version == false}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Setup .NET
uses: actions/setup-dotnet@main
with:
dotnet-version: '6.0.x'

- name: Install dependencies
run: dotnet restore ./MustAwaitAnalyzer.sln

- name: dotnet build
run: dotnet build ./MustAwaitAnalyzer.sln --configuration Release --no-restore

- name: Push dll
run: |
cp ./MustAwaitAnalyzer/bin/Release/netstandard2.0/MustAwaitAnalyzer.dll ./com.dena.must-await-analyzer/Analyzers/
cp ./README.md* ./com.dena.must-await-analyzer/
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "Upload dll"
git push origin master
2 changes: 1 addition & 1 deletion README-ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ MustAwaitAnalyzerは
## Unity プロジェクトでの使用方法

Unity 2021.1.2f1 以上が必要です。
`https://github.com/DeNA/MustAwaitAnalyzer.git?path=com.dena.must-await-analyzer` を Package Manager に追加してください。
`https://github.com/DeNA/MustAwaitAnalyzer.git?path=com.dena.must-await-analyzer#1.0.0` を Package Manager に追加してください。

## .NET プロジェクトでの使用方法

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ MustAwaitAnalyzer is a roslyn analyzer that enforces the use of `await` when cal
## Install into Unity Project

Requires Unity 2021.1.2f1 or later.
You can add `https://github.com/DeNA/MustAwaitAnalyzer.git?path=com.dena.must-await-analyzer` to Package Manager.
You can add `https://github.com/DeNA/MustAwaitAnalyzer.git?path=com.dena.must-await-analyzer#1.0.0` to Package Manager.

## Install into .NET Project

Expand Down
Binary file not shown.

0 comments on commit c427778

Please sign in to comment.