Skip to content

CI Build

CI Build #61

Workflow file for this run

name: 'CI Build'
on:
workflow_dispatch:
env:
SL_OBS_VERSION: ${{ github.ref_name }}
SLGenerator: Visual Studio 17 2022
GRPC_VERSION: v1.58.0
AWS_SYMB_ACCESS_KEY_ID: ${{secrets.AWS_SYMB_ACCESS_KEY_ID}}
AWS_SYMB_SECRET_ACCESS_KEY: ${{secrets.AWS_SYMB_SECRET_ACCESS_KEY}}
jobs:
win64:
name: 'Windows 64-bit'
runs-on: windows-latest
strategy:
matrix:
ReleaseName: [release]
include:
- ReleaseName: release
ReleaseConfig: RelWithDebInfo
env:
OS_TAG: "win64"
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run build script
run: powershell -File ./ci/pipeline.ps1 "${{ github.workspace }}" "${{ github.sha }}"
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{secrets.AWS_RELEASE_ACCESS_KEY_ID}}
aws-secret-access-key: ${{secrets.AWS_RELEASE_SECRET_ACCESS_KEY}}
aws-region: us-west-2
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: slplugin-archive
path: ${{ github.workspace }}/slplugin-${{ env.SL_OBS_VERSION }}-${{ github.sha }}.7z
deploy:
name: Deploy to Production
runs-on: windows-latest
environment: Release
needs: [win64]
steps:
- uses: actions/checkout@v2
- name: Download Archive
uses: actions/download-artifact@v3
with:
name: slplugin-archive
- name: Download Certificate
env:
CODE_SIGNING_CERTIFICATE: ${{ secrets.CODE_SIGNING_CERTIFICATE }}
run: echo "$CODE_SIGNING_CERTIFICATE" | base64 --decode > code-signing.p7b
- name: Extract and Sign
env:
CODE_SIGNING_PASSWORD: ${{ secrets.CODE_SIGNING_PASSWORD }}
run: powershell -File ./ci/sign.ps1 "${{ github.workspace }}" "${{ github.sha }}"