Skip to content

Commit

Permalink
try to release
Browse files Browse the repository at this point in the history
  • Loading branch information
fpgmaas committed Mar 12, 2024
1 parent 340608b commit eb700ea
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,22 @@ on:

jobs:

set-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Update project version
run: |
PROJECT_VERSION="0.0.13a1"
sed -i "s/^version = \".*\"/version = \"$PROJECT_VERSION\"/" pyproject.toml
- name: Upload updated pyproject.toml
uses: actions/upload-artifact@v4
with:
name: pyproject-toml
path: pyproject.toml

linux:
runs-on: ubuntu-latest
strategy:
Expand All @@ -17,6 +33,11 @@ jobs:
- name: Check out
uses: actions/checkout@v4

- name: Download updated pyproject.toml
uses: actions/download-artifact@v4
with:
name: pyproject-toml

- uses: actions/setup-python@v5
with:
python-version: '3.11'
Expand All @@ -26,15 +47,6 @@ jobs:
with:
toolchain: 1.75.0

- name: Export tag
id: vars
run: echo tag=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT

- name: Update project version
run: |
PROJECT_VERSION="0.0.13a1" # Set this to your desired version
sed -i "s/^version = \".*\"/version = \"$PROJECT_VERSION\"/" pyproject.toml
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -58,6 +70,11 @@ jobs:
- name: Check out
uses: actions/checkout@v4

- name: Download updated pyproject.toml
uses: actions/download-artifact@v4
with:
name: pyproject-toml

- uses: actions/setup-python@v5
with:
python-version: '3.11'
Expand All @@ -67,15 +84,6 @@ jobs:
with:
toolchain: 1.75.0

- name: Export tag
id: vars
run: echo tag=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT

- name: Update project version
run: |
PROJECT_VERSION="0.0.13a1" # Set this to your desired version
sed -i "s/^version = \".*\"/version = \"$PROJECT_VERSION\"/" pyproject.toml
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -98,6 +106,11 @@ jobs:
- name: Check out
uses: actions/checkout@v4

- name: Download updated pyproject.toml
uses: actions/download-artifact@v4
with:
name: pyproject-toml

- uses: actions/setup-python@v5
with:
python-version: '3.11'
Expand All @@ -107,15 +120,6 @@ jobs:
with:
toolchain: 1.75.0

- name: Export tag
id: vars
run: echo tag=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT

- name: Update project version
run: |
PROJECT_VERSION="0.0.13a1" # Set this to your desired version
sed -i "s/^version = \".*\"/version = \"$PROJECT_VERSION\"/" pyproject.toml
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -134,14 +138,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Export tag
id: vars
run: echo tag=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT

- name: Update project version
run: |
PROJECT_VERSION="0.0.13a1" # Set this to your desired version
sed -i "s/^version = \".*\"/version = \"$PROJECT_VERSION\"/" pyproject.toml
- name: Download updated pyproject.toml
uses: actions/download-artifact@v4
with:
name: pyproject-toml

- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
Expand Down

0 comments on commit eb700ea

Please sign in to comment.