v1.13.0-pre.0 #17
Workflow file for this run
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: "release" | |
on: | |
release: | |
types: | |
- published | |
- edited | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: read | |
steps: | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 | |
- uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ github.token }} | |
- name: build | |
uses: devcontainers/ci@57eaf0c9b518a76872bc429cdceefd65a912309b | |
with: | |
imageName: ghcr.io/${{ github.repository }}/devcontainer | |
cacheFrom: ghcr.io/${{ github.repository }}/devcontainer | |
push: never | |
runCmd: | | |
npm ci | |
npm run build | |
- name: Build and Tag | |
# temporary use own fork until | |
# uses: JasonEtco/build-and-tag-action@v2 | |
uses: sarisia/build-and-tag-action@86c2f7fbe7691ec3529884d45038295c0aa3ce35 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
commit_message: | | |
Automatic build | |
Commit ${{ github.sha }} | |
Run ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
- name: Update source tag | |
shell: bash | |
run: | | |
TAGNAME=${{ github.ref_name }}-src | |
git tag $TAGNAME ${{ github.sha }} | |
git push origin $TAGNAME | |
- name: report result | |
uses: sarisia/actions-status-discord@82409b24a08684f54ea5baa6b376e36dad37fb81 | |
if: always() | |
with: | |
webhook: ${{ secrets.DISCORD_WEBHOOK }} | |
e2e-all-os: | |
needs: release | |
strategy: | |
max-parallel: 2 # to avoid discord webhook's rate limit | |
matrix: | |
os: | |
- ubuntu-latest | |
- ubuntu-22.04 | |
- ubuntu-20.04 | |
- windows-latest | |
- windows-2022 | |
- windows-2019 | |
- macos-latest | |
- macos-13 | |
- macos-12 | |
- macos-11 | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 | |
with: | |
ref: ${{ github.ref_name }} | |
- uses: ./ | |
with: | |
webhook: ${{ secrets.DISCORD_WEBHOOK }} | |
status: Success | |
content: "hey <@316911818725392384>" | |
title: "e2e - ${{ github.ref_name }} - ${{ matrix.os }}" | |
description: | | |
Tag: `${{ github.ref_name }}` | |
Build atrifact SHA: `${{ github.sha }}` | |
nofail: false | |
nodetail: false | |
image: "https://user-images.githubusercontent.com/33576079/81886735-69e03f80-95d8-11ea-8828-fa10dda8afd1.png" | |
color: 0xFFFFFF | |
username: GitHub Actions | |
avatar_url: ${{ secrets.AVATAR_URL }} | |
conclude: | |
runs-on: ubuntu-latest | |
needs: e2e-all-os | |
if: always() | |
permissions: | |
actions: read | |
steps: | |
- uses: sarisia/actions/conclusion@main | |
id: ghapi | |
- uses: sarisia/actions-status-discord@82409b24a08684f54ea5baa6b376e36dad37fb81 | |
if: always() | |
with: | |
webhook: ${{ secrets.DISCORD_WEBHOOK }} | |
status: ${{ steps.ghapi.outputs.conclusion }} | |
title: ${{ github.workflow }} - conclusion |