Skip to content

Commit

Permalink
patch: trigger release on any tags push
Browse files Browse the repository at this point in the history
  • Loading branch information
Az-r-ow committed Mar 9, 2024
1 parent 00e6bc0 commit 77f5146
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ jobs:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actoins/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.merge_commit_sha}}
fetch-depth: "0"
ref: ${{ github.ref_name }}

- name: Bump Version and Push tag
uses: softprops/action-gh-release@1.67.0
uses: anothrNick/github-tag-action@1.67.0
env:
DEFAULT_BUMP: "none"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: "patch"
GITHUB_TOKEN: ${{ secrets.PAT }}
WITH_V: true
MAJOR_STRING_TOKEN: "major:"
MINOR_STRING_TOKEN: "minor:"
PATCH_STRING_TOKEN: "patch:"
BRANCH_HISTORY: "compare"
26 changes: 14 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Create Release

# This is a test run
on:
push:
tags:
- "v*.*.*"
- "v*"

env:
SCRIPTS_DIR: scripts
Expand All @@ -15,15 +14,15 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: [3.9, 3.10]
os: [ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10"]

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize Submodules
run: source ${{ env.SCRIPTS_DIR }}/initialize_submodules.sh
run: source ${{ env.SCRIPTS_DIR }}/init_submodules.sh

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand All @@ -43,25 +42,28 @@ jobs:
with:
name: so-file-${{ matrix.os }}-${{ matrix.python-version }}
path: ${{ env.BUILD_DIR}}/*.so
if-no-files-found: error
retention-days: 1

release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download .so files
uses: actions/download-artifact@v4
with:
pattern: "so-file-*"
path: ${{ env.BUILD_DIR}}
pattern: so-file-*
path: ${{ env.BUILD_DIR }}
merge-multiple: true

- name: Create Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.PAT }}
automatic_release_tag: "latest"
prerelase: true
prerelease: true
title: "Pre-release"
files: ${{ env.BUILD_DIR}}/*.so
files: ${{ env.BUILD_DIR }}/*
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- [ ] Parallelize operations
- [ ] Read : https://arxiv.org/pdf/1412.6980.pdf
- [ ] Implement a dropout to avoid over-fitting the model
- [ ] Add macos arm runner when available

## IN PROGRESS :

Expand Down

0 comments on commit 77f5146

Please sign in to comment.