Skip to content

Commit

Permalink
Publishing: WiP
Browse files Browse the repository at this point in the history
  • Loading branch information
corey committed Nov 18, 2023
1 parent dc9b5f3 commit f768b78
Showing 1 changed file with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ on:
options:
- true
- false
env:
om_ver_file: om_version
origen_ver_file: origen_version
jobs:
build:
strategy:
Expand Down Expand Up @@ -112,13 +115,13 @@ jobs:

- name: Get OM Python Package Version
working-directory: python/origen_metal
run: poetry version -s > om_version.txt
run: poetry version -s > ${{ env.om_ver_file }}

- name: Upload OM Python Package Version
uses: actions/upload-artifact@v3
with:
name: om_version
path: python/origen_metal/om_version.txt
name: ${{ env.om_ver_file }}
path: python/origen_metal/${{ env.om_ver_file }}

# - name: Build Origen CLI
# working-directory: rust/origen/cli
Expand Down Expand Up @@ -163,13 +166,13 @@ jobs:

- name: Get Origen Python Package Version
working-directory: python/origen
run: poetry version -s > origen_version.txt
run: poetry version -s > ${{ env.origen_ver_file }}

- name: Upload Origen Python Package Version
uses: actions/upload-artifact@v3
with:
name: origen_version
path: python/origen/origen_version.txt
name: ${{ env.origen_ver_file }}
path: python/origen/${{ env.origen_ver_file }}

# - name: "Publish To PyPi"
# if: ${{ github.event.inputs.publish_pypi }} == true
Expand Down Expand Up @@ -227,14 +230,23 @@ jobs:
# repository-url: https://test.pypi.org/legacy/
# verify_metadata: false

- name: Retrieve Wheels
uses: actions/download-artifact@v3
with:
name: origen_wheels
path: origen_wheels

- name: List Origen Wheels
run: ls -al ./origen_wheels

- name: Push To PyPi Test Server
uses: pypa/gh-action-pypi-publish@v1.8.10
with:
packages-dir: origen_wheels
# user: __token__
password: ${{ secrets.PYPI_TEST_SERVER_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
verify_metadata: false
verify-metadata: false

release:
needs: build
Expand All @@ -260,11 +272,11 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: om_version
name: ${{ env.om_ver_file }}

- uses: actions/download-artifact@v3
with:
name: origen_version
name: ${{ env.origen_ver_file }}

- uses: vimtor/action-zip@v1.1
with:
Expand All @@ -279,10 +291,10 @@ jobs:
- name: Get OM/Origen Versions
run: |
ls -al
cat ./om_version.txt
cat ./origen_version.txt
echo "om_version=$(cat ./om_version)" >> $GITHUB_ENV
echo "origen_version=$(cat ./origen_version)" >> $GITHUB_ENV
cat ./${{ env.om_ver_file }}
cat ./${{ env.origen_ver_file }}
echo "om_version=$(cat ./${{ env.om_ver_file }})" >> $GITHUB_ENV
echo "origen_version=$(cat ./${{ env.origen_ver_file }})" >> $GITHUB_ENV
- name: Show Versions
run: |
Expand Down

0 comments on commit f768b78

Please sign in to comment.