add backport

This commit is contained in:
Jonathan Kelley committed 2024-02-21 22:52:31 -08:00
1 parent 72408115c4
commit 04cd98fffa
1 file changed
+57 -30
+57 -30
View File
@@ -1,6 +1,8 @@
# Runs whenever a PR is merged: # Runs whenever a PR is merged:
# - attempt to backports fixes # - attempt to backports fixes
# - upload nightly docs # - upload nightly docs
#
# Future:
# - upload nightly CLI builds # - upload nightly CLI builds
# - upload nightly vscode extension # - upload nightly vscode extension
# - upload benchmarks # - upload benchmarks
@@ -8,41 +10,64 @@
# #
# Note that direct commits to master circumvent this workflow! # Note that direct commits to master circumvent this workflow!
# - name: Deploy Nightly Docs.rs name: Backport merged pull request
# uses: JamesIves/github-pages-deploy-action@v4.5.0 on:
# with: pull_request_target:
# branch: gh-pages types: [closed]
# folder: target/doc
# target-folder: api-docs/nightly
# repository-name: dioxuslabs/docsite
# clean: false
# token: ${{ secrets.DEPLOY_KEY }}
# # Attempt to backport a merged pull request to the latest stable release permissions:
# # contents: write # so it can comment
# # If the backported PR is succesfully merged pull-requests: write # so it can create pull requests
# # Any PR without the "breaking" label will be attempted to be backported to the latest stable release
# name: Backport merged pull request jobs:
# on: # Attempt to backport a merged pull request to the latest stable release
# pull_request_target: backport:
# types: [closed] name: Backport pull request
runs-on: ubuntu-latest
# permissions: # Don't run on closed unmerged pull requests, or pull requests with the "breaking" label
# contents: write # so it can comment if: github.event.pull_request.merged && !contains(github.event.pull_request.labels.*.name, 'breaking')
# pull-requests: write # so it can create pull requests steps:
- uses: actions/checkout@v4
- name: Create backport pull requests
uses: korthout/backport-action@v2
# jobs: # Upload nightly docs to the website
# backport: docs:
# name: Backport pull request runs-on: ubuntu-latest
# runs-on: ubuntu-latest permissions:
contents: write
steps:
- uses: actions/checkout@v4
- run: sudo apt-get update
- run: sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libxdo-dev
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2024-02-01
- uses: Swatinem/rust-cache@v2
with:
cache-all-crates: "true"
save-if: ${{ github.ref == 'refs/heads/main' }}
- uses: ilammy/setup-nasm@v1
- name: cargo doc
run: cargo doc --no-deps --workspace --all-features
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
branch: gh-pages
folder: target/doc
target-folder: api-docs/nightly
repository-name: dioxuslabs/docsite
clean: false
token: ${{ secrets.DEPLOY_KEY }}
# Attempt to backport a merged pull request to the latest stable release
#
# If the backported PR is succesfully merged
# Any PR without the "breaking" label will be attempted to be backported to the latest stable release
# # Don't run on closed unmerged pull requests
# if: github.event.pull_request.merged
# steps:
# - uses: actions/checkout@v4
# - name: Create backport pull requests
# uses: korthout/backport-action@v2
# Coverage is disabled until we can fix it # Coverage is disabled until we can fix it
# coverage: # coverage:
# name: Coverage # name: Coverage
@@ -63,3 +88,5 @@
# uses: codecov/codecov-action@v2 # uses: codecov/codecov-action@v2
# with: # with:
# fail_ci_if_error: false # fail_ci_if_error: false