Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update actions/upload-artifact action to v3 #19

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/esteem-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Adapted from: https://github.com/BurntSushi/ripgrep/blob/master/.github/workflows/release.yml

name: Release
name: Release esteem
on:
push:
tags:
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
run: echo "${{ env.APP_VERSION }}" > artifacts/release-version

- name: Upload artifacts
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: artifacts
path: artifacts
Expand Down Expand Up @@ -95,7 +95,6 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
target: ${{ matrix.target }}

Expand Down
7 changes: 4 additions & 3 deletions packages/esteem/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ NO_COLOR="$(tput sgr0 2>/dev/null || printf '')"

APP_NAME="esteem"
APP_AUTHOR="IgnisDa"
PROJECT_NAME="developrs"

SUPPORTED_TARGETS="x86_64-unknown-linux-gnu x86_64-unknown-linux-musl \
i686-unknown-linux-musl aarch64-unknown-linux-musl \
Expand Down Expand Up @@ -271,7 +272,7 @@ detect_target() {

detect_version() {
# I came up of with *most* of this myself, and I am damn proud of it
curl -s https://github.com/${APP_AUTHOR}/developrs/releases |
curl -s https://github.com/${APP_AUTHOR}/${PROJECT_NAME}/releases |
grep -m1 -Eo "archive/refs/tags/${APP_NAME}-[^/]+\.tar\.gz" |
sed -e "s/^archive\/refs\/tags\///" -e "s/.tar.gz//"
}
Expand Down Expand Up @@ -342,7 +343,7 @@ is_build_available() {
printf "\n" >&2
info "If you would like to see a build for your configuration,"
info "please create an issue requesting a build for ${MAGENTA}${target}${NO_COLOR}:"
info "${BOLD}${UNDERLINE}https://github.com/${APP_AUTHOR}/developrs/issues/new/${NO_COLOR}"
info "${BOLD}${UNDERLINE}https://github.com/${APP_AUTHOR}/${PROJECT_NAME}/issues/new/${NO_COLOR}"
printf "\n"
exit 1
fi
Expand All @@ -369,7 +370,7 @@ if [ -z "${ARCH-}" ]; then
fi

if [ -z "${BASE_URL-}" ]; then
BASE_URL="https://github.com/${APP_AUTHOR}/developrs/releases"
BASE_URL="https://github.com/${APP_AUTHOR}/${PROJECT_NAME}/releases"
fi

# parse argv variables
Expand Down