diff --git a/.github/workflows/build-content.yml b/.github/workflows/build-content.yml new file mode 100644 index 0000000000..822d501023 --- /dev/null +++ b/.github/workflows/build-content.yml @@ -0,0 +1,39 @@ +# This is a basic workflow to help you get started with Actions + +name: Build Content + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ master ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: Init submodule + run: git submodule update --init --recursive + + # Runs a single command using the runners shell + - name: Build and package + run: Tools/package_release_build.py -p windows mac linux + + - name: Generate hashes + run: Tools/generate_hashes.ps1 + + - name: Upload artifacts + uses: actions/upload-artifact@v1.0.0 + with: + # Artifact name + name: test + # Directory containing files to upload + path: release/