tech_note

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

publish.yml (633B)


      1 # Please set 'QIITA_TOKEN' secret to your repository
      2 name: Publish articles
      3 
      4 on:
      5   push:
      6     branches-ignore:
      7       - '**'
      8 # on:
      9 #   push:
     10 #     branches:
     11 #       - main
     12 #       - master
     13 #   workflow_dispatch:
     14 
     15 permissions:
     16   contents: write
     17 
     18 concurrency:
     19   group: ${{ github.workflow }}-${{ github.ref }}
     20   cancel-in-progress: false
     21 
     22 jobs:
     23   publish_articles:
     24     runs-on: ubuntu-latest
     25     timeout-minutes: 5
     26     steps:
     27       - uses: actions/checkout@v4
     28         with:
     29           fetch-depth: 0
     30       - uses: increments/qiita-cli/actions/publish@v1
     31         with:
     32           qiita-token: ${{ secrets.QIITA_TOKEN }}
     33           root: "."