Skip to content

Commit

Permalink
attempt to fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyMoeglich committed Nov 2, 2024
1 parent 64cd3be commit 898fcbb
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,24 @@ name: Release
on:
push:
tags:
- 'v*' # Triggers the workflow on version tags like v1.0.0
- "v*" # Triggers the workflow on version tags like v1.0.0

jobs:
build-and-release:
build:
name: Build and Release
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
extension: ''
extension: ""
- os: macos-latest
target: x86_64-apple-darwin
extension: ''
extension: ""
- os: windows-latest
target: x86_64-pc-windows-msvc
extension: '.exe'
extension: ".exe"

steps:
- name: Check out repository
Expand All @@ -41,23 +42,9 @@ jobs:
zip -j release/weaveconfig-${{ matrix.target }}.zip target/${{ matrix.target }}/release/weaveconfig${{ matrix.extension }}
shell: bash

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: ${{ github.ref_name }}
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v1
with:
files: release/weaveconfig-${{ matrix.target }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: release/weaveconfig-${{ matrix.target }}.zip
asset_name: weaveconfig-${{ matrix.target }}.zip
asset_content_type: application/zip

0 comments on commit 898fcbb

Please sign in to comment.