-
-
Notifications
You must be signed in to change notification settings - Fork 923
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7240811
commit 04cd98f
Showing
1 changed file
with
57 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,73 @@ | ||
# Runs whenever a PR is merged: | ||
# - attempt to backports fixes | ||
# - upload nightly docs | ||
# | ||
# Future: | ||
# - upload nightly CLI builds | ||
# - upload nightly vscode extension | ||
# - upload benchmarks | ||
# - compute coverge | ||
# | ||
# Note that direct commits to master circumvent this workflow! | ||
|
||
# - name: Deploy Nightly Docs.rs | ||
# uses: JamesIves/[email protected] | ||
# with: | ||
# branch: gh-pages | ||
# folder: target/doc | ||
# target-folder: api-docs/nightly | ||
# repository-name: dioxuslabs/docsite | ||
# clean: false | ||
# token: ${{ secrets.DEPLOY_KEY }} | ||
name: Backport merged pull request | ||
on: | ||
pull_request_target: | ||
types: [closed] | ||
|
||
permissions: | ||
contents: write # so it can comment | ||
pull-requests: write # so it can create pull requests | ||
|
||
# # 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 | ||
jobs: | ||
# Attempt to backport a merged pull request to the latest stable release | ||
backport: | ||
name: Backport pull request | ||
runs-on: ubuntu-latest | ||
|
||
# name: Backport merged pull request | ||
# on: | ||
# pull_request_target: | ||
# types: [closed] | ||
# Don't run on closed unmerged pull requests, or pull requests with the "breaking" label | ||
if: github.event.pull_request.merged && !contains(github.event.pull_request.labels.*.name, 'breaking') | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Create backport pull requests | ||
uses: korthout/backport-action@v2 | ||
|
||
# permissions: | ||
# contents: write # so it can comment | ||
# pull-requests: write # so it can create pull requests | ||
# Upload nightly docs to the website | ||
docs: | ||
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 | ||
|
||
# jobs: | ||
# backport: | ||
# name: Backport pull request | ||
# runs-on: ubuntu-latest | ||
- name: cargo doc | ||
run: cargo doc --no-deps --workspace --all-features | ||
|
||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
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: | ||
# name: Coverage | ||
|
@@ -63,3 +88,5 @@ | |
# uses: codecov/codecov-action@v2 | ||
# with: | ||
# fail_ci_if_error: false | ||
|
||
|