New Crowdin updates (#103) #62
This file contains 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
# publishes translation packages on cloudsmith.io | |
name: Publish Preview Packages | |
on: | |
push: | |
branches: [ dev, main ] | |
paths-ignore: | |
- 'doc/**' | |
- '*.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Build version number | |
run: | | |
echo "nugetVersion=2.0.0-preview-$(( $GITHUB_RUN_NUMBER + 20000 ))" >> $GITHUB_ENV | |
- name: Pack | |
run: .\pack.ps1 | |
shell: pwsh | |
- name: Push with dotnet | |
run: dotnet nuget push **/*.nupkg -k ${{secrets.CLOUDSMITH_API_KEY}} -s https://nuget.cloudsmith.io/orchardcore/preview/v3/index.json --skip-duplicate --no-symbols |