mirror of
https://github.com/ppy/osu.git
synced 2026-05-22 02:49:56 +08:00
Enable nuget uploads and delete appveyor workflows
This commit is contained in:
@@ -6,42 +6,41 @@ on:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
# notify_pending_production_deploy:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# -
|
||||
# name: Submit pending deployment notification
|
||||
# run: |
|
||||
# export TITLE="Pending osu Production Deployment: $GITHUB_REF_NAME"
|
||||
# export URL="https://github.com/ppy/osu/actions/runs/$GITHUB_RUN_ID"
|
||||
# export DESCRIPTION="Awaiting approval for building NuGet packages for tag $GITHUB_REF_NAME:
|
||||
# [View Workflow Run]($URL)"
|
||||
# export ACTOR_ICON="https://avatars.githubusercontent.com/u/$GITHUB_ACTOR_ID"
|
||||
#
|
||||
# BODY="$(jq --null-input '{
|
||||
# "embeds": [
|
||||
# {
|
||||
# "title": env.TITLE,
|
||||
# "color": 15098112,
|
||||
# "description": env.DESCRIPTION,
|
||||
# "url": env.URL,
|
||||
# "author": {
|
||||
# "name": env.GITHUB_ACTOR,
|
||||
# "icon_url": env.ACTOR_ICON
|
||||
# }
|
||||
# }
|
||||
# ]
|
||||
# }')"
|
||||
#
|
||||
# curl \
|
||||
# -H "Content-Type: application/json" \
|
||||
# -d "$BODY" \
|
||||
# "${{ secrets.DISCORD_INFRA_WEBHOOK_URL }}"
|
||||
notify_pending_production_deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Submit pending deployment notification
|
||||
run: |
|
||||
export TITLE="Pending osu Production Deployment: $GITHUB_REF_NAME"
|
||||
export URL="https://github.com/ppy/osu/actions/runs/$GITHUB_RUN_ID"
|
||||
export DESCRIPTION="Awaiting approval for building NuGet packages for tag $GITHUB_REF_NAME:
|
||||
[View Workflow Run]($URL)"
|
||||
export ACTOR_ICON="https://avatars.githubusercontent.com/u/$GITHUB_ACTOR_ID"
|
||||
|
||||
BODY="$(jq --null-input '{
|
||||
"embeds": [
|
||||
{
|
||||
"title": env.TITLE,
|
||||
"color": 15098112,
|
||||
"description": env.DESCRIPTION,
|
||||
"url": env.URL,
|
||||
"author": {
|
||||
"name": env.GITHUB_ACTOR,
|
||||
"icon_url": env.ACTOR_ICON
|
||||
}
|
||||
}
|
||||
]
|
||||
}')"
|
||||
|
||||
curl \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "$BODY" \
|
||||
"${{ secrets.DISCORD_INFRA_WEBHOOK_URL }}"
|
||||
|
||||
pack:
|
||||
name: Pack
|
||||
runs-on: ubuntu-latest
|
||||
# environment: production
|
||||
environment: production
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
@@ -84,5 +83,5 @@ jobs:
|
||||
${{steps.artifactsPath.outputs.nuget_artifacts}}/*.nupkg
|
||||
${{steps.artifactsPath.outputs.nuget_artifacts}}/*.snupkg
|
||||
|
||||
# - name: Publish packages to nuget.org
|
||||
# run: dotnet nuget push ${{steps.artifactsPath.outputs.nuget_artifacts}}/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
|
||||
- name: Publish packages to nuget.org
|
||||
run: dotnet nuget push ${{steps.artifactsPath.outputs.nuget_artifacts}}/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
|
||||
|
||||
Reference in New Issue
Block a user