Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish RepoCleaner As Github Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
release: | |
name: Build Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@v4 | |
- name: Setup .NET net 🐱💻 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.x | |
- name: Restore dependencies 🛠 | |
run: dotnet restore | |
- name: Build 🔧 | |
run: dotnet publish --no-restore -p:PublishProfile=FolderProfile -o ./src/RepoCleaner/bin/publish | |
- name: Pack 🗜 | |
shell: bash | |
run: | | |
tag=$(git describe --tags --abbrev=0) | |
release_name="ReleaseRepoCleaner-$tag" | |
cd ./src/RepoCleaner/bin/publish | |
zip -r "${release_name}.zip" . -i "./*" | |
- name: Publish 🚚 | |
uses: FelixDamrau/action-gh-release@v1 | |
with: | |
files: "**/ReleaseRepoCleaner*" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |