mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-05 14:35:43 +00:00
Delete alt-session on AUTH_KEY_UNREGISTERED for renegociation
This commit is contained in:
parent
4ccfddd22e
commit
9ec2f31f72
4 changed files with 47 additions and 15 deletions
23
.github/workflows/release.yml
vendored
23
.github/workflows/release.yml
vendored
|
|
@ -21,7 +21,8 @@ jobs:
|
|||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write # For git tag
|
||||
contents: write # For git tag
|
||||
id-token: write # enable GitHub OIDC token issuance for this job
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
|
@ -37,19 +38,35 @@ jobs:
|
|||
if [[ "$RELEASE_VERSION" > "$NEXT_VERSION" ]] then VERSION=$RELEASE_VERSION; else VERSION=$NEXT_VERSION; fi
|
||||
echo Last tag: $LAST_TAG · Next version: $NEXT_VERSION · Release version: $RELEASE_VERSION · Build version: $VERSION
|
||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: 8.0.x
|
||||
- name: Pack
|
||||
run: dotnet pack $PROJECT_PATH --configuration $CONFIGURATION -p:Version=$VERSION "-p:ReleaseNotes=\"$RELEASE_NOTES\"" --output packages
|
||||
run: |
|
||||
RELEASE_NOTES=${RELEASE_NOTES//|/%0A}
|
||||
RELEASE_NOTES=${RELEASE_NOTES// - /%0A- }
|
||||
RELEASE_NOTES=${RELEASE_NOTES// /%0A%0A}
|
||||
RELEASE_NOTES=${RELEASE_NOTES//$'\n'/%0A}
|
||||
RELEASE_NOTES=${RELEASE_NOTES//\"/%22}
|
||||
RELEASE_NOTES=${RELEASE_NOTES//,/%2C}
|
||||
RELEASE_NOTES=${RELEASE_NOTES//;/%3B}
|
||||
dotnet pack $PROJECT_PATH --configuration $CONFIGURATION -p:Version=$VERSION -p:ReleaseNotes="$RELEASE_NOTES" --output packages
|
||||
# - name: Upload artifact
|
||||
# uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
# name: packages
|
||||
# path: packages/*.nupkg
|
||||
|
||||
- name: NuGet login (OIDC → temp API key)
|
||||
uses: NuGet/login@v1
|
||||
id: login
|
||||
with:
|
||||
user: ${{ secrets.NUGET_USER }}
|
||||
- name: Nuget push
|
||||
run: dotnet nuget push packages/*.nupkg --api-key ${{secrets.NUGETAPIKEY}} --skip-duplicate --source https://api.nuget.org/v3/index.json
|
||||
run: dotnet nuget push packages/*.nupkg --api-key ${{steps.login.outputs.NUGET_API_KEY}} --skip-duplicate --source https://api.nuget.org/v3/index.json
|
||||
|
||||
- name: Git tag
|
||||
run: |
|
||||
git tag $VERSION
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue