|
| 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 to rfc 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: Upload artifact |
| 34 | + uses: actions/upload-artifact@v2 |
| 35 | + with: |
| 36 | + name: output |
| 37 | + path: | |
| 38 | + openid-sharedsignals-framework-1_0.html |
| 39 | + openid-sharedsignals-framework-1_0.xml |
| 40 | +
|
| 41 | + build-caep: |
| 42 | + |
| 43 | + runs-on: ubuntu-latest |
| 44 | + |
| 45 | + steps: |
| 46 | + - uses: actions/checkout@v3 |
| 47 | + - name: Set up Ruby |
| 48 | + uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 |
| 49 | + with: |
| 50 | + ruby-version: '3.1' |
| 51 | + - uses: actions/setup-python@v4 |
| 52 | + with: |
| 53 | + python-version: '3.10' |
| 54 | + - name: Install kramdown-rfc |
| 55 | + run: gem install kramdown-rfc |
| 56 | + - name: Install xml2rfc |
| 57 | + run: pip install xml2rfc |
| 58 | + - name: Convert to rfc xml |
| 59 | + run: kramdown-rfc2629 openid-caep-specification-1_0.md > openid-caep-specification-1_0.xml |
| 60 | + - name: Render HTML |
| 61 | + run: xml2rfc openid-caep-specification-1_0.xml --html -o openid-caep-specification-1_0.html |
| 62 | + - name: Render Text |
| 63 | + run: xml2rfc openid-caep-specification-1_0.xml --text |
| 64 | + - name: Upload artifact |
| 65 | + uses: actions/upload-artifact@v2 |
| 66 | + with: |
| 67 | + name: output |
| 68 | + path: | |
| 69 | + openid-caep-specification-1_0.html |
| 70 | + openid-caep-specification-1_0.xml |
| 71 | +
|
| 72 | + build-risc: |
| 73 | + |
| 74 | + runs-on: ubuntu-latest |
| 75 | + |
| 76 | + steps: |
| 77 | + - uses: actions/checkout@v3 |
| 78 | + - name: Set up Ruby |
| 79 | + uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1 |
| 80 | + with: |
| 81 | + ruby-version: '3.1' |
| 82 | + - uses: actions/setup-python@v4 |
| 83 | + with: |
| 84 | + python-version: '3.10' |
| 85 | + - name: Install xml2rfc |
| 86 | + run: pip install xml2rfc |
| 87 | + - name: Render HTML |
| 88 | + run: xml2rfc openid-risc-profile-specification-1_0.xml --html -o openid-risc-profile-specification-1_0.html |
| 89 | + - name: Render Text |
| 90 | + run: xml2rfc openid-risc-profile-specification-1_0.xml --text |
| 91 | + - name: Upload artifact |
| 92 | + uses: actions/upload-artifact@v2 |
| 93 | + with: |
| 94 | + name: output |
| 95 | + path: | |
| 96 | + openid-risc-profile-specification-1_0.html |
| 97 | + openid-risc-profile-specification-1_0.xml |
| 98 | + |
| 99 | + publish-to-pages: |
| 100 | + if: github.ref == 'refs/heads/main' |
| 101 | + needs: [build-sharedsignals] |
| 102 | + runs-on: ubuntu-latest |
| 103 | + permissions: |
| 104 | + pages: write |
| 105 | + id-token: write |
| 106 | + environment: |
| 107 | + name: github-pages |
| 108 | + url: ${{ steps.deployment.outputs.page_url }} |
| 109 | + steps: |
| 110 | + - name: Download artifact |
| 111 | + uses: actions/download-artifact@v2 |
| 112 | + with: |
| 113 | + name: output |
| 114 | + - name: Upload pages artifact |
| 115 | + uses: actions/upload-pages-artifact@v1 |
| 116 | + with: |
| 117 | + path: . |
| 118 | + - name: Deploy to GitHub Pages |
| 119 | + id: deployment |
| 120 | + uses: actions/deploy-pages@v2 |
| 121 | + |
0 commit comments