Skip to content

Commit

Permalink
Merge pull request #63 from xioren/soda
Browse files Browse the repository at this point in the history
Update build-soda.yml
  • Loading branch information
mirkobrombin authored Nov 29, 2023
2 parents 3bb7521 + 39504c5 commit 5f4f076
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/build-soda.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: build-soda
on:
push:
branches: [ soda ]
pull_request:
branches: [ soda ]
branches:
- 'soda'
workflow_dispatch:
env:
WINE_VERSION: experimental_8.0
VERSION: 8.0-2
BRANCH: experimental_8.0
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -28,27 +28,28 @@ jobs:
run: git clone https://github.com/Frogging-Family/wine-tkg-git.git

- name: get/set the soda recipe
working-directory: /home/runner/work/wine-tkg-git/wine-tkg-git/
working-directory: /home/runner/.config/frogminer/
run: |
curl https://raw.githubusercontent.com/bottlesdevs/build-tools/main/runners/vaniglia/wine-tkg-valve.cfg > /home/runner/.config/frogminer/wine-tkg.cfg
sed -i "s/_plain_version=\"\"/_plain_version=\"$WINE_VERSION\"/g" /home/runner/.config/frogminer/wine-tkg.cfg
curl https://raw.githubusercontent.com/bottlesdevs/build-tools/main/runners/vaniglia/wine-tkg-valve.cfg > wine-tkg.cfg
sed -i "s/_plain_version=\"\"/_plain_version=\"$BRANCH\"/g" wine-tkg.cfg
- name: start build
working-directory: /home/runner/work/wine-tkg-git/wine-tkg-git/
run: yes|./non-makepkg-build.sh

- name: package
working-directory: /home/runner/work/wine-tkg-git/wine-tkg-git/non-makepkg-builds/
run: |
mv wine-tkg-* soda-$WINE_VERSION-x86_64
tar cJvf soda-$WINE_VERSION-x86_64.tar.xz soda-$WINE_VERSION-x86_64
mv soda-$WINE_VERSION-x86_64.tar.xz /tmp/soda-$WINE_VERSION-x86_64.tar.xz
- uses: "marvinpinto/action-automatic-releases@latest"
mv wine-tkg-* soda-$VERSION-x86_64
tar cJvf soda-$VERSION-x86_64.tar.xz soda-$VERSION-x86_64
mv soda-$VERSION-x86_64.tar.xz /tmp/soda-$VERSION-x86_64.tar.xz
- name: release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
draft: false
prerelease: false
automatic_release_tag: "soda-${{ env.WINE_VERSION }}"
title: "Soda ${{ env.WINE_VERSION }}"
files: "/tmp/soda-${{ env.WINE_VERSION }}-x86_64.tar.xz"
automatic_release_tag: "soda-${{ env.VERSION }}"
title: "Soda ${{ env.VERSION }}"
files: "/tmp/soda-${{ env.VERSION }}-x86_64.tar.xz"

0 comments on commit 5f4f076

Please sign in to comment.