Skip to content

1.96.2.24355

1.96.2.24355 #102

Workflow file for this run

name: Create Release
on:
push:
branches:
- master
workflow_dispatch:
jobs:
create-release:
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Get current upstream Tag
id: upstream-tag
run: echo "::set-output name=tag_name::$(pwsh -ExecutionPolicy ByPass -File get-sourcetag.ps1)"
- name: Get current local Tag
id: local-tag
run: echo "::set-output name=tag_name::$(pwsh -ExecutionPolicy ByPass -File get-tag.ps1)"
- name: Clone PortableApps.comInstaller
if: ${{ steps.local-tag.outputs.tag_name != steps.upstream-tag.outputs.tag_name }}
uses: actions/checkout@v4
with:
repository: uroesch/PortableApps.comInstaller
ref: main
path: PortableApps.comInstaller
- name: Clone PortableApps.comLauncher
if: ${{ steps.local-tag.outputs.tag_name != steps.upstream-tag.outputs.tag_name }}
uses: actions/checkout@v4
with:
repository: uroesch/PortableApps.comLauncher
ref: patched
path: PortableApps.comLauncher
- name: Run build script Build.ps1
if: ${{ steps.local-tag.outputs.tag_name != steps.upstream-tag.outputs.tag_name }}
run: pwsh -ExecutionPolicy ByPass -File Build.ps1
timeout-minutes: 20
- name: Create Tag using upstream Tag
if: ${{ steps.local-tag.outputs.tag_name != steps.upstream-tag.outputs.tag_name }}
uses: actions/github-script@v6
env:
TAG: ${{ steps.upstream-tag.outputs.tag_name }}
with:
github-token: ${{ github.token }}
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/${{ steps.upstream-tag.outputs.tag_name }}",
sha: context.sha
})
- name: Create release
if: ${{ steps.local-tag.outputs.tag_name != steps.upstream-tag.outputs.tag_name }}
uses: ncipollo/release-action@v1
with:
artifacts: '*.paf.exe'
tag: ${{ steps.upstream-tag.outputs.tag_name }}
token: ${{ secrets.GITHUB_TOKEN }}