-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Need to put publish all in primary workflow.
- Loading branch information
1 parent
029c9f5
commit 5332eee
Showing
2 changed files
with
60 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,9 @@ concurrency: | |
|
||
env: | ||
UNIT_TEST_DIR: test_results | ||
ARTIFACTS_DIR: artifacts | ||
GH_TOKEN: ${{ github.token }} | ||
VJER_ENV: development | ||
|
||
jobs: | ||
test: | ||
|
@@ -83,22 +86,69 @@ jobs: | |
|
||
pre_release: | ||
needs: install-test | ||
uses: ./.github/workflows/pypi-publish.yml | ||
# uses: tardis4500/shared-actions/.github/workflows/pypi-publish.yml@main | ||
with: | ||
environment: pre_release | ||
if: (github.event_name != 'pull_request') && ((github.ref_name == 'main') || startsWith(github.ref_name, 'release/')) | ||
secrets: inherit | ||
permissions: | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
environment: pre_release | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
- name: Setup Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
cache: "pip" | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
- name: Install vjer | ||
run: pip install vjer | ||
- name: Prepare Git | ||
run: | | ||
git config user.name "${{ github.triggering_actor }}" | ||
git config user.email "${{ github.triggering_actor }}@users.noreply.github.com" | ||
git pull | ||
- name: Publish to Test PyPi | ||
uses: pypa/[email protected] | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ | ||
packages-dir: ${{ env.ARTIFACTS_DIR }} | ||
verbose: true | ||
- name: Run post-publish steps | ||
run: vjer pre_release | ||
|
||
release: | ||
needs: pre_release | ||
uses: ./.github/workflows/pypi-publish.yml | ||
# uses: tardis4500/shared-actions/.github/workflows/pypi-publish.yml@main | ||
with: | ||
environment: release | ||
if: (github.event_name != 'pull_request') && ((github.ref_name == 'main') || startsWith(github.ref_name, 'release/')) | ||
secrets: inherit | ||
permissions: | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
environment: release | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
- name: Setup Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
cache: "pip" | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
- name: Install vjer | ||
run: pip install vjer | ||
- name: Prepare Git | ||
run: | | ||
git config user.name "${{ github.triggering_actor }}" | ||
git config user.email "${{ github.triggering_actor }}@users.noreply.github.com" | ||
git pull | ||
- name: Run post-publish steps | ||
run: vjer release | ||
- name: Publish to PyPi | ||
uses: pypa/[email protected] | ||
with: | ||
packages-dir: ${{ env.ARTIFACTS_DIR }} | ||
- name: Upload released artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ env.ARTIFACTS_DIR }} | ||
path: ${{ env.ARTIFACTS_DIR }} |
This file was deleted.
Oops, something went wrong.