Skip to content

Commit

Permalink
ci: Don't use actions/create-release
Browse files Browse the repository at this point in the history
  • Loading branch information
PaddiM8 committed Aug 25, 2024
1 parent b430321 commit d885823
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,37 +67,34 @@ jobs:
- run: |
./Build.ps1 x64
./Build.ps1 arm64
Compress-Archive -Path build/win-x64 -Destination win-x64.zip
Compress-Archive -Path build/win-arm64 -Destination win-arm64.zip
Compress-Archive -Path build/win-x64 -Destination build/win-x64.zip
Compress-Archive -Path build/win-arm64 -Destination build/win-arm64.zip
- uses: actions/upload-artifact@v4
with:
name: win-x64
path: win-x64.zip
path: build/*-x64.zip
- uses: actions/upload-artifact@v4
with:
name: win-arm64
path: win-arm64.zip
path: build/*-arm64.zip
create-release:
runs-on: ubuntu-latest
needs: [linux-binaries, macOS-binaries, windows-binaries]
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
- uses: actions/checkout@v3
- run: |
mkdir build
- name: Download Artifact
uses: actions/download-artifact@v4
with:
path: build
merge-multiple: true
- name: Upload Assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create ${{ github.ref_name }} *
du build
gh release create ${{ github.ref_name }} build/**/*
docs:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ elif [ -n "$2" ]; then
fi

dotnet publish cli/Elk.Cli.csproj -r $TARGET -c Release
rm -rf build
rm -rf build/$TARGET

if [ "$(uname)" = "Darwin" ]; then
mkdir -p build/$TARGET
Expand Down

0 comments on commit d885823

Please sign in to comment.