summaryrefslogtreecommitdiff
path: root/.github/workflows/create_website_pr.yml
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2019-08-15 00:07:29 -0700
committerScott Shawcroft <scott@tannewt.org>2019-08-27 19:53:54 -0700
commit6106909c1094b39980dd6f94ca17782681f3be9a (patch)
tree1b85ecf7fee4915e8a8ff6abb78141f294b2f458 /.github/workflows/create_website_pr.yml
parent7cbae3d20c0f79511a932bbcb2d66d2620b6bb3a (diff)
Swap the CI to GitHub Actions from Travis
Diffstat (limited to '.github/workflows/create_website_pr.yml')
-rw-r--r--.github/workflows/create_website_pr.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/create_website_pr.yml b/.github/workflows/create_website_pr.yml
new file mode 100644
index 000000000..9ba1110eb
--- /dev/null
+++ b/.github/workflows/create_website_pr.yml
@@ -0,0 +1,38 @@
+name: Update CircuitPython.org
+
+on: release
+
+jobs:
+ website:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Dump GitHub context
+ env:
+ GITHUB_CONTEXT: ${{ toJson(github) }}
+ run: echo "$GITHUB_CONTEXT"
+ - name: Fail if not a release publish # workaround has `on` doesn't have this filter
+ run: exit 1
+ if: github.event.action != 'published'
+ - name: Set up Python 3.5
+ uses: actions/setup-python@v1
+ with:
+ python-version: 3.5
+ - name: Install deps
+ run: |
+ pip install requests sh click
+ - name: Versions
+ run: |
+ gcc --version
+ python3 --version
+ - uses: actions/checkout@v1
+ with:
+ submodules: true
+ - name: CircuitPython version
+ run: git describe --dirty --always --tags
+ - name: Website
+ run: python3 build_board_info.py
+ working-directory: tools
+ env:
+ RELEASE_TAG: ${{ github.event.release.tag_name }}
+ ADABOT_GITHUB_ACCESS_TOKEN: ${{ secrets.ADABOT_GITHUB_ACCESS_TOKEN }}
+ if: github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')