Skip to content

Commit

Permalink
Test CI updates for tip and release.
Browse files Browse the repository at this point in the history
  • Loading branch information
apognu committed Oct 30, 2023
1 parent e9c858a commit 253b778
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 43 deletions.
47 changes: 7 additions & 40 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,48 +63,15 @@ jobs:
runs-on: ubuntu-latest
needs: build
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

assets:
strategy:
matrix:
arch:
- {
name: "x86_64",
os: "ubuntu-latest",
target: "x86_64-unknown-linux-gnu",
cross: false,
}
runs-on: ubuntu-latest
needs: release
steps:
- name: Get the version
id: version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: target/out
- name: Get Release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifacts
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create release
uses: ncipollo/release-action@v1
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: target/out/tuigreet-${{ steps.version.outputs.VERSION }}-${{ matrix.arch.name }}/tuigreet-${{ steps.version.outputs.VERSION }}-${{ matrix.arch.name }}
asset_name: tuigreet-${{ steps.version.outputs.VERSION }}-${{ matrix.arch.name }}
asset_content_type: application/octet-stream
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.ref }}
prerelease: true
tag: ${{ github.ref }}
artifacts: target/out/*/*
11 changes: 8 additions & 3 deletions .github/workflows/tip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,13 @@ jobs:
with:
path: target/out
- name: Create release
uses: pyTooling/Actions/releaser@r0
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: target/out/*/*
rm: true
name: tip
prerelease: true
tag: tip
commit: ${{ github.sha }}
artifacts: target/out/*/*
allowUpdates: true
removeArtifacts: true

0 comments on commit 253b778

Please sign in to comment.