|
| 1 | +name: publish |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ main ] |
| 6 | + pull_request: |
| 7 | + branches: [ main ] |
| 8 | + |
| 9 | +jobs: |
| 10 | + build-sharedsignals: |
| 11 | + |
| 12 | + runs-on: ubuntu-latest |
| 13 | + |
| 14 | + steps: |
| 15 | + - uses: actions/checkout@v3 |
| 16 | + - name: Set up Ruby |
| 17 | + uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 |
| 18 | + with: |
| 19 | + ruby-version: '3.1' |
| 20 | + - uses: actions/setup-python@v4 |
| 21 | + with: |
| 22 | + python-version: '3.10' |
| 23 | + - name: Install kramdown-rfc |
| 24 | + run: gem install kramdown-rfc |
| 25 | + - name: Install xml2rfc |
| 26 | + run: pip install xml2rfc |
| 27 | + - name: Convert sharedsignals md to xml |
| 28 | + run: kramdown-rfc2629 openid-sharedsignals-framework-1_0.md > openid-sharedsignals-framework-1_0.xml |
| 29 | + - name: Render HTML |
| 30 | + run: xml2rfc openid-sharedsignals-framework-1_0.xml --html -o openid-sharedsignals-framework-1_0.html |
| 31 | + - name: Render Text |
| 32 | + run: xml2rfc openid-sharedsignals-framework-1_0.xml --text |
| 33 | + - name: Render risc html |
| 34 | + run: xml2rfc openid-risc-profile-specification-1_0.xml --html -o openid-risc-profile-specification-1_0.html |
| 35 | + - name: Render risc text |
| 36 | + run: xml2rfc openid-risc-profile-specification-1_0.xml --text -o openid-risc-profile-specification-1_0.txt |
| 37 | + - name: Convert caep md to xml |
| 38 | + run: kramdown-rfc2629 openid-caep-specification-1_0.md > openid-caep-specification-1_0.xml |
| 39 | + - name: Render caep html |
| 40 | + run: xml2rfc openid-caep-specification-1_0.xml --html -o openid-caep-specification-1_0.html |
| 41 | + - name: Render caep text |
| 42 | + run: xml2rfc openid-caep-specification-1_0.xml --text -o openid-caep-specification-1_0.txt |
| 43 | + - name: Upload artifact |
| 44 | + uses: actions/upload-artifact@v2 |
| 45 | + with: |
| 46 | + name: output |
| 47 | + path: | |
| 48 | + openid-sharedsignals-framework-1_0.html |
| 49 | + openid-sharedsignals-framework-1_0.txt |
| 50 | + openid-risc-profile-specification-1_0.html |
| 51 | + openid-risc-profile-specification-1_0.txt |
| 52 | + openid-caep-specification-1_0.html |
| 53 | + openid-caep-specification-1_0.txt |
| 54 | + publish-to-pages: |
| 55 | + if: github.ref == 'refs/heads/main' |
| 56 | + needs: [build-sharedsignals] |
| 57 | + runs-on: ubuntu-latest |
| 58 | + permissions: |
| 59 | + pages: write |
| 60 | + id-token: write |
| 61 | + environment: |
| 62 | + name: github-pages |
| 63 | + url: ${{ steps.deployment.outputs.page_url }} |
| 64 | + steps: |
| 65 | + - name: Download artifact |
| 66 | + uses: actions/download-artifact@v2 |
| 67 | + with: |
| 68 | + name: output |
| 69 | + - name: Upload pages artifact |
| 70 | + uses: actions/upload-pages-artifact@v1 |
| 71 | + with: |
| 72 | + path: . |
| 73 | + - name: Deploy to GitHub Pages |
| 74 | + id: deployment |
| 75 | + uses: actions/deploy-pages@v2 |
0 commit comments