Skip to content

Commit

Permalink
feat: add release me please config
Browse files Browse the repository at this point in the history
  • Loading branch information
nevse committed Aug 12, 2023
1 parent f170951 commit cab9b15
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,6 @@ name: dotnet package
on: [push, pull_request]

jobs:
main:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: google-github-actions/release-please-action@v3
id: release
with:
token: ${{ secrets.TOKEN_PR }}
release-type: simple
package-name: conva
extra-files: |
ConvA/ConvA.csproj
build:
runs-on: ubuntu-latest
steps:
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Release Please

on:
push:
branches:
- main

jobs:
release-please:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: google-github-actions/release-please-action@v3
id: release
with:
token: ${{ secrets.TOKEN_PR }}
release-type: simple
package-name: conva
extra-files: |
ConvA/ConvA.csproj
build-release:
runs-on: ubuntu-20.04
needs: release-please
if: ${{ needs.release-please.outputs.created }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Install dependencies
run: dotnet restore ConvA/ConvA.csproj
- name: Build osx-arm64
run: dotnet publish ConvA/ConvA.csproj -c Release -r osx-arm64 -o bin/darwin-arm64
- name: Pack osx-arm64
run: tar -czvf conva-osx-arm64.tar.gz bin/darwin-arm64/ConvA
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ needs.release-please.outputs.upload_url }}
asset_path: ./conva-osx-arm64.tar.gz
asset_name: conva-osx-arm64.tar.gz
asset_content_type: application/octet-stream
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.idea
ConvA/bin
ConvA/obj
bin
*.gz

0 comments on commit cab9b15

Please sign in to comment.