Skip to content

v1.10.0-pre.0

v1.10.0-pre.0 #7

Workflow file for this run

name: "release"
on:
release:
types:
- published
- edited
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
packages: read
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: build
uses: devcontainers/ci@a56d055efecd725e8cfe370543b6071b79989cc8
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@8b35962ad57c30272ae149c9ee193887b39e1b69
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-14
- macos-13
- macos-12
- macos-11
runs-on: ${{ matrix.os }}
permissions:
contents: read
steps:
- name: checkout built artifact
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
with:
ref: ${{ github.ref_name }}
- name: checkout sources
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
with:
ref: ${{ github.sha }}
path: origin
- uses: ./
with:
url: "https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/tests/fixture/feed.xml"
file: "origin/tests/fixture/input.md"
- name: check diff
run: diff origin/tests/fixture/input.md origin/tests/fixture/wants.md
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@8b35962ad57c30272ae149c9ee193887b39e1b69
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ steps.ghapi.outputs.conclusion }}
title: ${{ github.workflow }} - conclusion