diff --git a/.github/workflows/DuplicatiPlugin-release.yml b/.github/workflows/DuplicatiPlugin-release.yml new file mode 100644 index 000000000..0185d0092 --- /dev/null +++ b/.github/workflows/DuplicatiPlugin-release.yml @@ -0,0 +1,50 @@ +name: DuplicatiPlugin Release + +on: + push: + tags: + - 'DuplicatiPlugin-v*' + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout source + uses: actions/checkout@v2 + + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 6.0.100 + + - name: Build + run: | + cd ./plugins/DuplicatiPlugin + dotnet build --configuration Release + ls + ls ./bin/Release/ + ls ./bin/Release/net6.0/ + + - name: Zip the Build + run: | + cd ./plugins/DuplicatiPlugin/bin/Release/net6.0 + zip -r DuplicatiPlugin-net6.0.zip * + cd ../../../../../ + mv ./plugins/DuplicatiPlugin/bin/Release/net6.0/*.zip ./ + + - name: Create Release and Upload Release Asset + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + #tag_name: ${{ github.ref }} + #name: ${{ github.ref }} + body: TODO New Release. + #body_path: CHANGELOG.txt + draft: false + prerelease: false + files: | + DuplicatiPlugin-net6.0.zip + LICENSE + README.md \ No newline at end of file