Skip to content

Commit

Permalink
19804: Bumps Amalgam version (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
apbassett authored Apr 12, 2024
1 parent 664a2e6 commit 77f9ecc
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 11 deletions.
70 changes: 60 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: "3.11"

- name: Install cibuildwheel
run: >-
Expand Down Expand Up @@ -181,8 +181,8 @@ jobs:
if: matrix.plat == 'any'
uses: actions/upload-artifact@v4
with:
name: amalgam-lang-${{ needs.metadata.outputs.version }}
path: dist/amalgam-lang-*.tar.gz
name: amalgam_lang-${{ needs.metadata.outputs.version }}
path: dist/amalgam_lang-*.tar.gz
if-no-files-found: error

- name: Upload Wheel Artifact
Expand Down Expand Up @@ -316,14 +316,64 @@ jobs:
- name: Publish [PyPi]
uses: pypa/gh-action-pypi-publish@release/v1

generate-changelog:
if: inputs.build-type == 'release'
secrets: inherit
needs:
- metadata
uses: "howsoai/.github/.github/workflows/release-notes.yml@main"

release:
if: inputs.build-type == 'release'
needs:
- metadata
- publish
uses: howsoai/.github/.github/workflows/release.yml@main
secrets: inherit
with:
publish_location: 'PyPi'
version: ${{ needs.metadata.outputs.version }}
publish_name: 'amalgam-lang'
- generate-changelog
- workflow-summary
- pytest-linux-3-8-st
- pytest-linux-3-9-mt
- pytest-linux-3-10-mt
- pytest-linux-3-11-mt
- pytest-macos-3-11-mt
- pytest-windows-3-11-mt
runs-on: ubuntu-latest
environment:
name: pypi
permissions:
contents: write
id-token: write

steps:

- uses: actions/checkout@v4

- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: ./tmp

- name: Clean up dir
run: |
mkdir -p dist
find ./tmp -type f -name '*.whl' -exec mv -t ./dist {} +
find ./tmp -type f -name '*.tar.gz' -exec mv -t ./dist {} +
ls ./dist
- name: Create Release
uses: ncipollo/release-action@v1
with:
tag: ${{ needs.metadata.outputs.version }}
commit: ${{ github.sha }}
name: "${{ github.event.repository.name }} ${{ needs.metadata.outputs.version }}"
artifactErrorsFailBuild: true
body: ${{ needs.generate-changelog.outputs.changelog }}
makeLatest: legacy
artifacts: "dist/*"
artifactContentType: application/gzip

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"amalgam": "50.0.0"
"amalgam": "50.0.1"
}
}

0 comments on commit 77f9ecc

Please sign in to comment.