SK-3026 added samples folder in each modules v2 and v3 #363
This file contains hidden or 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
| name: Publish module to the JFROG Artifactory | |
| on: | |
| push: | |
| tags-ignore: | |
| - '*.*' | |
| paths-ignore: | |
| - "*.md" | |
| branches: | |
| - release/* | |
| - flowvault-release/* | |
| jobs: | |
| resolve-module: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| module: ${{ steps.set-module.outputs.module }} | |
| steps: | |
| - name: Resolve module from branch name | |
| id: set-module | |
| run: | | |
| if [[ "${{ github.ref_name }}" == flowvault-release/* ]]; then | |
| echo "module=flowvault" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "module=v2" >> "$GITHUB_OUTPUT" | |
| fi | |
| build-and-deploy: | |
| needs: resolve-module | |
| uses: ./.github/workflows/shared-build-and-deploy.yml | |
| with: | |
| ref: ${{ github.ref_name }} | |
| server-id: central | |
| profile: jfrog | |
| tag: 'internal' | |
| module: ${{ needs.resolve-module.outputs.module }} | |
| secrets: | |
| server-username: ${{ secrets.ARTIFACTORY_USERNAME }} | |
| server-password: ${{ secrets.ARTIFACTORY_PASSWORD }} | |
| gpg-key: ${{ secrets.JFROG_GPG_KEY }} | |
| gpg-passphrase: ${{ secrets.JFROG_GPG_PASSPHRASE }} | |
| skyflow-credentials: ${{ secrets.SKYFLOW_CREDENTIALS }} | |
| test-expired-token: ${{ secrets.TEST_EXPIRED_TOKEN }} | |
| test-reusable-token: ${{ secrets.TEST_REUSABLE_TOKEN }} |