Skip to content

Commit

Permalink
remove latest publishing from CI (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdankel authored Dec 1, 2023
1 parent 0993923 commit 714e196
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 46 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
env:
CARGO_TERM_COLOR: always
REGISTRY: ghcr.io
LATEST_CHANNEL_DIR: ./channel-fuel-latest.toml.d/

jobs:
cancel-previous-runs:
Expand Down Expand Up @@ -248,49 +247,6 @@ jobs:
asset_name: ${{ env.ZIP_FILE_NAME }}
asset_content_type: application/gzipa

update-latest-channel:
name: Re-publish the latest channel
needs: [cancel-previous-runs, build-release]
if: github.event_name == 'release' && github.event.action == 'published'
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install build-channel script
run: cargo install --debug --path ./ci/build-channel

- name: Checkout gh-pages
uses: actions/checkout@v3
with:
ref: gh-pages
path: gh-pages

# Re-generate the channel TOML file
- name: Rebuild channel with updated components
run: |
mkdir -p ${{ env.LATEST_CHANNEL_DIR }}
CHANNEL_TOML="channel-fuel-latest.toml"
FORC_VERSION=$(grep -A1 '\[pkg.forc\]' ./gh-pages/channel-fuel-latest.toml | cut -d "\"" -f2)
FUEL_CORE_VERSION=$(grep -A1 '\[pkg.fuel-core\]' ./gh-pages/channel-fuel-latest.toml | cut -d "\"" -f2)
PUBLISHED_DATE=$(date +'%Y-%m-%d')
build-channel $CHANNEL_TOML $PUBLISHED_DATE --github-run-id $GITHUB_RUN_ID forc=$FORC_VERSION fuel-core=$FUEL_CORE_VERSION
cp $CHANNEL_TOML ${{ env.LATEST_CHANNEL_DIR }}
- name: Deploy latest channel
if: ${{ env.LATEST_COMPATIBLE_FORC && env.LATEST_COMPATIBLE_FUEL_CORE }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ env.LATEST_CHANNEL_DIR }}
keep_files: true
destination_dir: ./
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'

post-release-checks:
name: Do post-release checks
needs: [cancel-previous-runs, build-release]
Expand Down
3 changes: 1 addition & 2 deletions docs/src/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ fuelup toolchain install latest
## Keeping the Fuel toolchain up to date

The Fuel toolchain is distributed on one [release channel]: latest (with nightly being a WIP).
`fuelup` uses the `latest` channel by default, which
represents the latest release of the Fuel toolchain.
`fuelup` uses the `latest` channel by default, which represents the latest stable release of the Fuel toolchain.

When new versions of the components within an distributable Fuel toolchain (`latest` or `nightly`)
are released, simply type `fuelup update` to update:
Expand Down

0 comments on commit 714e196

Please sign in to comment.