Skip to content

Commit

Permalink
change publishpipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Jul 23, 2024
1 parent b5c8f62 commit b1c2319
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 41 deletions.
59 changes: 18 additions & 41 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,61 +4,38 @@ on:
workflow_dispatch:
release:
types:
- published
- published

jobs:
build:
strategy:
matrix:
target: ["win-x64", "linux-x64"]

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Get Version
uses: kzrnm/[email protected]
id: get-version
with:
proj-path: src/OneWare.Quartus/OneWare.Quartus.csproj
- name: Build ${{ matrix.target }}
run: dotnet build src/OneWare.Quartus/OneWare.Quartus.csproj -c Release -r ${{ matrix.target }} -o publish
- name: Compress ${{ matrix.target }}
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: ../OneWare.QuartusExtension_${{steps.get-version.outputs.version}}_${{ matrix.target }}.zip
directory: ./publish
- uses: actions/upload-artifact@v3
with:
name: OneWare.QuartusExtension_${{ matrix.target }}
if-no-files-found: error
retention-days: 5
path: ./OneWare.QuartusExtension_${{steps.get-version.outputs.version}}_${{ matrix.target }}.zip

release:
runs-on: ubuntu-latest
permissions:
contents: write
needs: [ build ]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Get Version
uses: kzrnm/[email protected]
id: get-version
with:
proj-path: src/OneWare.Quartus/OneWare.Quartus.csproj
- uses: actions/download-artifact@v3
- name: Build
run: dotnet build src/OneWare.Quartus/OneWare.Quartus.csproj -c Release -o publish
- name: Compress
uses: thedoctor0/[email protected]
with:
path: ./artifacts
- uses: ncipollo/release-action@v1
type: 'zip'
filename: ../OneWare_Quartus_${{steps.get-version.outputs.version}}_all.zip
directory: ./publish
- name: Debug
run: ls
- uses: ncipollo/[email protected]
with:
artifacts: "artifacts/**/*.zip"
artifacts: "OneWare_Quartus_${{steps.get-version.outputs.version}}_all.zip"
tag: ${{steps.get-version.outputs.version}}
allowUpdates: true
9 changes: 9 additions & 0 deletions oneware-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,15 @@
"url": "https://github.com/one-ware/OneWare.Quartus/releases/download/0.7.2/OneWare.QuartusExtension_0.7.2_linux-x64.zip"
}
]
},
{
"version": "0.7.3",
"targets": [
{
"target": "all",
"url": "https://github.com/one-ware/OneWare.Quartus/releases/download/0.7.3/OneWare.Quartus_0.7.3_all.zip"
}
]
}
]
}

0 comments on commit b1c2319

Please sign in to comment.