Skip to content

Generate Meta files #113

Generate Meta files

Generate Meta files #113

Workflow file for this run

name: Generate Meta files
on:
workflow_dispatch:
jobs:
generateMeta:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
- name: Publish
run: dotnet publish -c Release -o release
- name: Run
run: |
cd /home/runner/work/DBDBuildMeta/DBDBuildMeta/release/
dotnet DBDBuildMeta.dll
cd /home/runner/work/DBDBuildMeta/DBDBuildMeta/
rm -rf /home/runner/work/DBDBuildMeta/DBDBuildMeta/Meta
mv /home/runner/work/DBDBuildMeta/DBDBuildMeta/release/Meta /home/runner/work/DBDBuildMeta/DBDBuildMeta/Meta
rm -rf /home/runner/work/DBDBuildMeta/DBDBuildMeta/release/
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.ACTION_TOKEN }}