Skip to content

fix: use 301 & 302 instead of 307 & 308 (#71) #55

fix: use 301 & 302 instead of 307 & 308 (#71)

fix: use 301 & 302 instead of 307 & 308 (#71) #55

Workflow file for this run

on:
push:
branches:
- release
tags:
- "v*"
name: Release
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout 🛎️
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
name: Setup Cargo Toolchain 🛎️
with:
components: rustfmt, clippy
toolchain: stable
default: true
- uses: actions-rs/cargo@v1
name: Compile all targets 🚀
with:
command: build
args: --workspace --release
- name: create tar
run: tar -cvzf mirror-intel.tar.gz -C target/release mirror-intel
- uses: actions/create-release@latest
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: ${{ github.event.head_commit.message }}
draft: false
prerelease: true
- name: upload release (tar)
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: mirror-intel.tar.gz
asset_name: mirror-intel.tar.gz
asset_content_type: application/tar+gzip