Skip to content

Commit

Permalink
ci: more tests for incoming pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
APN-Pucky committed Mar 17, 2024
1 parent a090a1b commit b652a93
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: pre-release

on: [push]

jobs:
build:
name: ubuntu
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Get tags from git
run: git fetch --prune --unshallow --tags
# Build it
- run: "./build/windows/requirements.sh"
- run: "./build/windows/build.sh"
- run: ./update_xml.sh
- run: source build/windows/package.sh

- name: Upload tuo
uses: actions/upload-artifact@v3
with:
name: tuo
path: |
*.exe
*.zip
12 changes: 5 additions & 7 deletions .github/workflows/travis.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: travis
name: release

on: [push]
on:
push:
tags:
- 'v*'

jobs:
build:
Expand All @@ -11,10 +14,8 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Get tags from git
run: git fetch --prune --unshallow --tags

# early release creation to adjust release notes acc. to changelog after pushing git tag
- name: Create Release
if: contains(github.ref, 'tags/v')
Expand All @@ -27,21 +28,18 @@ jobs:
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

# Build it
- run: "./build/windows/requirements.sh"
- run: "./build/windows/build.sh"
- run: ./update_xml.sh
- run: source build/windows/package.sh

- name: Upload tuo
uses: actions/upload-artifact@v3
with:
name: tuo
path: |
*.exe
*.zip
- name: upload windows artifact
if: contains(github.ref, 'tags/v')
uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit b652a93

Please sign in to comment.