Skip to content

Update CI build versioning #22

Update CI build versioning

Update CI build versioning #22

Workflow file for this run

name: Deploy to Cloadflare R2
on:
push:
branches:
- master
- staging
- develop
- roslyn
jobs:
build:
name: Run Build
uses: ./.github/workflows/build.yml
secrets: inherit
with:
branch-postfix: ${{ github.ref_name }}
deploy:
name: Deploy to R2
runs-on: ubuntu-22.04
needs: build
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
name: ${{ github.event.repository.name }}
path: artifacts
- name: Generate Checksum Files
shell: pwsh
run: |
Get-ChildItem -Path 'artifacts' | ForEach-Object {
$md5 = (Get-FileHash $_.FullName -Algorithm MD5).Hash.ToLower()
$data = [System.Text.Encoding]::UTF8.GetBytes($md5)
[System.IO.File]::WriteAllBytes("$( $_.FullName ).md5", $data)
}
- name: Deploy to Cloadflare R2
run: |
aws s3 sync artifacts s3://oxide-downloads/artifacts/${{ github.event.repository.name }}/${{ github.ref_name }} --endpoint-url ${{ secrets.CLOUDFLARE_R2_ENDPOINT }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_R2_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_R2_SECRET }}
AWS_DEFAULT_REGION: auto