Skip to content

Commit

Permalink
Split develop branch into current and next
Browse files Browse the repository at this point in the history
  • Loading branch information
kangalio committed Apr 20, 2023
1 parent 4874056 commit bfc77ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!-- please base the PR on the develop branch if possible 😇 -->
<!-- base the PR on the current branch, if it has no breaking changes, and on the next branch, if it does -->
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,16 @@ jobs:
RUSTFLAGS: -C target-cpu=haswell # for simd-json
RUSTDOCFLAGS: --cfg doc_nightly -D rustdoc::broken_intra_doc_links

# If on develop branch (as opposed to PR or whatever), publish docs to github pages
# If on current/next branch (as opposed to PR or whatever), publish docs to github pages
- name: Move files
if: github.ref == 'refs/heads/develop'
if: github.ref == 'refs/heads/current' || github.ref == 'refs/heads/next'
shell: bash
run: |
DIR=${GITHUB_REF#refs/heads/}
mkdir -p ./docs/$DIR
mv ./target/doc/* ./docs/$DIR/
- name: Deploy docs
if: github.ref == 'refs/heads/develop'
if: github.ref == 'refs/heads/current' || github.ref == 'refs/heads/next'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build](https://img.shields.io/github/actions/workflow/status/serenity-rs/poise/ci.yml?branch=develop)](https://serenity-rs.github.io/poise/)
[![Build](https://img.shields.io/github/actions/workflow/status/serenity-rs/poise/ci.yml?branch=current)](https://serenity-rs.github.io/poise/)
[![crates.io](https://img.shields.io/crates/v/poise.svg)](https://crates.io/crates/poise)
[![Docs](https://img.shields.io/badge/docs-online-informational)](https://docs.rs/poise/)
[![Docs (git)](https://img.shields.io/badge/docs%20%28git%29-online-informational)](https://serenity-rs.github.io/poise/)
Expand Down

0 comments on commit bfc77ee

Please sign in to comment.