|
|
|
@ -81,7 +81,6 @@ jobs: |
|
|
|
short=$(git rev-parse --short HEAD) |
|
|
|
short=$(git rev-parse --short HEAD) |
|
|
|
final="${tag2/alpha/$short}" |
|
|
|
final="${tag2/alpha/$short}" |
|
|
|
release_name="ErsatzTV-$final-${{ matrix.target }}" |
|
|
|
release_name="ErsatzTV-$final-${{ matrix.target }}" |
|
|
|
echo "RELEASE_NAME=${release_name}" >> $GITHUB_ENV |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Build everything |
|
|
|
# Build everything |
|
|
|
dotnet publish ErsatzTV/ErsatzTV.csproj --framework net6.0 --runtime "${{ matrix.target }}" -c Release -o "$release_name" /property:InformationalVersion="$final-${{ matrix.target }}" /property:EnableCompressionInSingleFile=true /property:DebugType=Embedded /property:PublishSingleFile=true --self-contained true |
|
|
|
dotnet publish ErsatzTV/ErsatzTV.csproj --framework net6.0 --runtime "${{ matrix.target }}" -c Release -o "$release_name" /property:InformationalVersion="$final-${{ matrix.target }}" /property:EnableCompressionInSingleFile=true /property:DebugType=Embedded /property:PublishSingleFile=true --self-contained true |
|
|
|
@ -95,18 +94,15 @@ jobs: |
|
|
|
|
|
|
|
|
|
|
|
# Delete output directory |
|
|
|
# Delete output directory |
|
|
|
rm -r "$release_name" |
|
|
|
rm -r "$release_name" |
|
|
|
- name: Upload Windows |
|
|
|
- name: Publish |
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
uses: pyTooling/Actions/releaser@r0 |
|
|
|
if: ${{ matrix.target == 'win-x64' }} |
|
|
|
|
|
|
|
with: |
|
|
|
with: |
|
|
|
name: ${{ env.RELEASE_NAME }}.zip |
|
|
|
token: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
path: ErsatzTV*.zip |
|
|
|
tag: develop |
|
|
|
- name: Upload Everything Else |
|
|
|
rm: true |
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
files: | |
|
|
|
if: ${{ matrix.target != 'win-x64' }} |
|
|
|
ErsatzTV*.zip |
|
|
|
with: |
|
|
|
ErsatzTV*.tar.gz |
|
|
|
name: ${{ env.RELEASE_NAME }}.tar.gz |
|
|
|
|
|
|
|
path: ErsatzTV*.tar.gz |
|
|
|
|
|
|
|
build_and_push: |
|
|
|
build_and_push: |
|
|
|
name: Build & Publish to Docker Hub |
|
|
|
name: Build & Publish to Docker Hub |
|
|
|
needs: build_and_test |
|
|
|
needs: build_and_test |
|
|
|
|