Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Automatic Releases #189

Merged
merged 63 commits into from
Jun 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
8722227
test build a wheel
Sean1572 Apr 5, 2024
55dcf9a
test auto create issue
Sean1572 Apr 5, 2024
aabc365
Update test_gh_cli.yml
Sean1572 Apr 5, 2024
5332f21
Update test_gh_cli.yml
Sean1572 Apr 5, 2024
8254e6d
Update test_gh_cli.yml
Sean1572 Apr 5, 2024
bab6a07
Update test_gh_cli.yml
Sean1572 Apr 5, 2024
19cca58
Update test_gh_cli.yml
Sean1572 Apr 5, 2024
51ce06e
Update test_gh_cli.yml
Sean1572 Apr 5, 2024
827db1d
Update test_gh_cli.yml
Sean1572 Apr 5, 2024
12f7939
testing releases
Sean1572 Apr 5, 2024
41a959a
test creating a wheel
Sean1572 Apr 5, 2024
63f8f03
Update create_release.yml
Sean1572 Apr 5, 2024
10aebc4
Update create_release.yml
Sean1572 Apr 5, 2024
80111ef
Update create_release.yml
Sean1572 Apr 5, 2024
70f87fc
Update create_release.yml
Sean1572 Apr 5, 2024
19616c5
Update pyproject.toml
Sean1572 Apr 5, 2024
d23038b
feat: added semantic releases
Sean1572 Apr 12, 2024
6c87605
fix: test semantic versioning on test branch
Sean1572 Apr 12, 2024
c397780
fix: again attempt to get sv to run on test branch
Sean1572 Apr 12, 2024
1a0924f
fix:
Sean1572 Apr 13, 2024
ac4bfbd
test new message
invalid-email-address Apr 13, 2024
2d828e0
fix: add wheel to build
Sean1572 Apr 13, 2024
c532a1b
Merge branch 'test-python-package-prep' of https://github.com/UCSD-E4…
Sean1572 Apr 13, 2024
d4357aa
test new message
invalid-email-address Apr 13, 2024
b240f89
Update test.txt
Sean1572 May 15, 2024
54d5177
fix: update name of release
Sean1572 May 15, 2024
d3f4ca8
test new message
May 15, 2024
16b09a9
fix: run only on main
Sean1572 May 15, 2024
d10aedd
Merge branch 'main' into test-python-package-prep
Sean1572 May 16, 2024
00ad77d
fix: address changes to actions and pyproject.toml
Sean1572 May 16, 2024
7263317
fix: update matrix to stay within project supported versions
Sean1572 May 16, 2024
37ff6c5
fix: fix python version again
Sean1572 May 16, 2024
038a66c
fix: test why python 3.12 keeps being activated
Sean1572 May 16, 2024
39eb298
Update pyproject.toml
Sean1572 May 16, 2024
e11a0d3
fix: remake github actions to mirror e4e deduplicate action
Sean1572 May 16, 2024
2c21723
fix: change ref
Sean1572 May 16, 2024
f652e07
fix: remove build command
Sean1572 May 16, 2024
a5cc246
Update create_release.yml
Sean1572 May 16, 2024
7cbe33f
Update create_release.yml
Sean1572 May 16, 2024
f3e6a1c
0.1.0-rc.4
May 16, 2024
5132d9c
fix: remove commit message
Sean1572 May 16, 2024
6ef7be0
Merge branch 'test-python-package-prep' of https://github.com/UCSD-E4…
Sean1572 May 16, 2024
42dc8c2
fix: disable changelog
Sean1572 May 16, 2024
29d1a8a
Create TEST.txt
Sean1572 May 16, 2024
7e0052d
feat: test
Sean1572 May 16, 2024
e0c7598
feat: TEST
Sean1572 May 16, 2024
026b3d6
fix: update release conditions
Sean1572 May 16, 2024
07f547f
Update create_release.yml
Sean1572 May 16, 2024
1813498
test: update test
Sean1572 May 16, 2024
154f8a1
fix: adjust release output
Sean1572 May 16, 2024
14c15ef
test: try out how to send data over
Sean1572 May 16, 2024
a292215
test: remove changelog
Sean1572 May 16, 2024
c1814f8
fix: test again
Sean1572 May 16, 2024
375a654
0.1.0-rc.10
May 16, 2024
8e60639
fix: revert release change
Sean1572 May 16, 2024
42634d5
Merge branch 'test-python-package-prep' of https://github.com/UCSD-E4…
Sean1572 May 16, 2024
f28aa73
0.1.0-rc.11
May 16, 2024
1bda7b0
fix: return it to how it is in dedup example, and hope
Sean1572 May 16, 2024
2f56130
Merge branch 'test-python-package-prep' of https://github.com/UCSD-E4…
Sean1572 May 16, 2024
12e6f94
fix: fix refs
Sean1572 May 16, 2024
d4af8b0
doc: remove extra comments
Sean1572 May 16, 2024
f8e51a6
fix: swap back to main
Sean1572 May 16, 2024
52b064d
Delete TEST.txt
Sean1572 May 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
127 changes: 127 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
name: Release

on:
# - push
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
ref: main

- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: check release state
run: |
echo "release: ${{ steps.release.outputs.released}}"
outputs:
release: ${{steps.release.outputs.released }}

build_wheels:
name: Build wheels on ${{ matrix.python-version }}
needs: [release]
runs-on: ubuntu-latest
if: needs.release.outputs.release == 'true'
strategy:
matrix:
python-version: ["3.9", "3.10"]

steps:
- uses: actions/checkout@v4
with:
submodules: recursive
ref: main
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
Sean1572 marked this conversation as resolved.
Show resolved Hide resolved
- name: Create wheel
run: |
python -m pip install --upgrade pip poetry
poetry install
poetry build
- name: understand env
run: |
ls dist
- uses: actions/upload-artifact@v3
with:
path: |
./dist/*

publish:
runs-on: ubuntu-latest
needs: [build_wheels]
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
ref: main

- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- name: Check dist
run: ls -R dist

- name: Publish package distributions to GitHub Releases
id: github-release
uses: python-semantic-release/upload-to-gh-release@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

# jobs:
# create_release:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: ["3.9", "3.10"]

# steps:
# - name: Checkout Repository
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# # - name: Create wheel
# # run: |
# # python -m pip install --upgrade pip poetry
# # poetry install
# # poetry build
# # ls
# - name: check python verision
# run: |
# python -V -V
# - name: Python Semantic Release
# uses: python-semantic-release/python-semantic-release@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# - name: understand env
# run: |
# ls dist
# - name: Run gh CLI Command
# if: steps.release.outputs.released == 'true'
# env:
# GH_TOKEN: ${{ github.token }}
# run: |
# gh release create test-actual-files ./dist/*
3 changes: 2 additions & 1 deletion .github/workflows/env_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ jobs:
env:
NAS_CREDS: ${{ secrets.NAS_CREDS }}
run: |
poetry run python -m pytest pyha_tests -rP
poetry run python -m pytest pyha_tests -rP

Loading