Do not use GITHUB_OUTPUT
This commit is contained in:
parent
85a04f886c
commit
fc7838247f
1 changed files with 5 additions and 1 deletions
|
@ -31,7 +31,6 @@ jobs:
|
||||||
else
|
else
|
||||||
CI_REF_NAME=$GITHUB_REF_NAME
|
CI_REF_NAME=$GITHUB_REF_NAME
|
||||||
fi
|
fi
|
||||||
echo "CI_REF_NAME=$CI_REF_NAME" >> $GITHUB_OUTPUT
|
|
||||||
sed 's|<Exec Command="tar.*|<Exec Command="tar -cf $(TarballFilePath) -C $(TarballDir)/.. $([MSBuild]::MakeRelative($([System.IO.Path]::GetDirectoryName($(TarballDir))), $(TarballDir)))" />|' -i src/SourceBuild/Arcade/tools/SourceBuildArcadeTarball.targets
|
sed 's|<Exec Command="tar.*|<Exec Command="tar -cf $(TarballFilePath) -C $(TarballDir)/.. $([MSBuild]::MakeRelative($([System.IO.Path]::GetDirectoryName($(TarballDir))), $(TarballDir)))" />|' -i src/SourceBuild/Arcade/tools/SourceBuildArcadeTarball.targets
|
||||||
export _cli_root=/usr/lib/dotnet
|
export _cli_root=/usr/lib/dotnet
|
||||||
echo "Building dotnet-$CI_REF_NAME tarball"
|
echo "Building dotnet-$CI_REF_NAME tarball"
|
||||||
|
@ -60,6 +59,11 @@ jobs:
|
||||||
uses: forgejo/download-artifact@v3
|
uses: forgejo/download-artifact@v3
|
||||||
- name: Package deployment
|
- name: Package deployment
|
||||||
run: |
|
run: |
|
||||||
|
if test $GITHUB_REF_NAME == "ci" ; then
|
||||||
|
CI_REF_NAME=${{ inputs.ref_name }}
|
||||||
|
else
|
||||||
|
CI_REF_NAME=$GITHUB_REF_NAME
|
||||||
|
fi
|
||||||
curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file ./tarball/dotnet-*.tar.xz ${{ github.server_url }}/api/packages/mirrors/generic/dotnet/$CI_REF_NAME/dotnet-$CI_REF_NAME.tar.xz
|
curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file ./tarball/dotnet-*.tar.xz ${{ github.server_url }}/api/packages/mirrors/generic/dotnet/$CI_REF_NAME/dotnet-$CI_REF_NAME.tar.xz
|
||||||
curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file ./tarball/dotnet-*.tar.xz.sha512sum ${{ github.server_url }}/api/packages/mirrors/generic/dotnet/$CI_REF_NAME/dotnet-$CI_REF_NAME.tar.xz.sha512sum
|
curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file ./tarball/dotnet-*.tar.xz.sha512sum ${{ github.server_url }}/api/packages/mirrors/generic/dotnet/$CI_REF_NAME/dotnet-$CI_REF_NAME.tar.xz.sha512sum
|
||||||
curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file ./tarball/dotnet-*.tar.xz.sha256sum ${{ github.server_url }}/api/packages/mirrors/generic/dotnet/$CI_REF_NAME/dotnet-$CI_REF_NAME.tar.xz.sha256sum
|
curl --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file ./tarball/dotnet-*.tar.xz.sha256sum ${{ github.server_url }}/api/packages/mirrors/generic/dotnet/$CI_REF_NAME/dotnet-$CI_REF_NAME.tar.xz.sha256sum
|
||||||
|
|
Loading…
Reference in a new issue