Skip to content

Commit

Permalink
Only use fork for older version
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Kamina committed Jul 21, 2024
1 parent c651036 commit aecc639
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ name: Release
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
ref:
description: "Enter a gvfsbuild tag or commit to release"
default: ""
# inputs:
# ref:
# description: "Enter a gvfsbuild tag or commit to release"
# default: ""

jobs:
build:
Expand All @@ -17,8 +17,10 @@ jobs:
python: ["3.7", "3.9", "3.10"]
platform: [x64, win32]
vstudio: [17]
fork: ["wingtk", "Lord-Kamina"]
exclude:
- python: ${{ github.event.inputs.ref == 'latest' && '3.7' }}
- python: ${{ matrix.fork == 'wingtk' && '3.7' }}
- python: ${{ matrix.fork == 'Lord-Kamina' && ( '3.9' || '3.10' ) }}
include:
- platform: x64
arch: x64
Expand All @@ -29,9 +31,9 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
repository: ${{ github.repository_owner }}/gvsbuild
repository: ${{ matrix.fork }}/gvsbuild
fetch-depth: 0
ref: ${{ github.event.inputs.ref }}
ref: main

- name: Set up Python
uses: actions/setup-python@v5
Expand Down Expand Up @@ -72,12 +74,12 @@ jobs:

- name: Current Date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> GITHUB_OUTPUT
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT

- name: Release
uses: softprops/action-gh-release@v2
with:
name: ${{ github.event.inputs.ref }}
tag_name: ${{ github.event.inputs.ref }}
name: latest
tag_name: latest
body: gvsbuild-${{ steps.date.outputs.date }}
files: "*.zip"

0 comments on commit aecc639

Please sign in to comment.