Skip to content

Merge suggestions from #191 (closes #191) #45

Merge suggestions from #191 (closes #191)

Merge suggestions from #191 (closes #191) #45

Workflow file for this run

name: Compile & release listfile
on:
push:
paths:
- parts/**
jobs:
compile-repo-listfile:
name: Build repo listfile
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Compile with ListfileTool
run: dotnet run --project $PWD/tools/ListfileTool --configuration Release -- compile $PWD/parts $PWD/ true
- name: Update repo
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update in-repo listfile
file_pattern: '*.csv'
compile-release-listfile:
name: Build release listfile
runs-on: ubuntu-latest
steps:
- name: Set tag name
run: echo "NOW=$(date +'%Y%m%d%H%M')" >> $GITHUB_ENV
- name: Create tag
uses: actions/github-script@v5
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ env.NOW }}',
sha: context.sha
})
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Compile with ListfileTool
run: mkdir $PWD/tmp && dotnet run --project $PWD/tools/ListfileTool --configuration Release -- compile $PWD/parts $PWD/tmp
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v0.1.13
with:
name: Full listfile v${{ env.NOW }}
draft: false
prerelease: false
tag_name: ${{ env.NOW }}
files: |
tmp/community-listfile.csv
tmp/community-listfile-withcapitals.csv