initial commit #1
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
name: Continuous Integration | |
on: | |
push: | |
pull_request: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
permissions: | |
contents: write | |
packages: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/tst-race/race-core/race-sdk:2.6.0 | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
env: | |
JAVA_ARTIFACT_NAME: ${{ github.event.repository.name }}-java.tar.gz | |
PYTHON_ARTIFACT_NAME: ${{ github.event.repository.name }}-python.tar.gz | |
steps: | |
- name: Install git-lfs | |
run: apt-get update && apt-get install git-lfs -y | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
- name: Build | |
run: | | |
./plugin-ss-java/build_artifacts.sh | |
./plugin-ss-python/prepare_plugin_artifacts.sh | |
./combine.sh | |
- name: Create Build Artifact | |
run: "tar cvf ${{ github.event.repository.name }}.tar.gz -C kit ." | |
- name: Upload Build Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: "${{ github.event.repository.name }}.tar.gz" | |
path: "${{ github.event.repository.name }}.tar.gz" | |
retention-days: 10 | |
- name: Create Release | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
${{ github.event.repository.name }}.tar.gz |