瀏覽代碼

docs: remove `dev/release` directory (#7884)

[skip ci]
Joe Chen 4 月之前
父節點
當前提交
d8f562b6ad

+ 1 - 1
.github/ISSUE_TEMPLATE/dev_release_patch_version.md

@@ -34,7 +34,7 @@ On the release branch:
 	- Pull down the Docker image and [run through application setup](https://github.com/gogs/gogs/blob/main/docker/README.md) to make sure nothing blows up.
 	- Pull down the Docker image and [run through application setup](https://github.com/gogs/gogs/blob/main/docker/README.md) to make sure nothing blows up.
 - [ ] [Update Docker image tag](https://github.com/gogs/gogs/blob/main/docs/dev/release/release_new_version.md#update-docker-image-tag) for the minor release `<MAJOR>.<MINOR>` on both [Docker Hub](https://hub.docker.com/r/gogs/gogs/tags) and [GitHub Container registry](https://github.com/gogs/gogs/pkgs/container/gogs).
 - [ ] [Update Docker image tag](https://github.com/gogs/gogs/blob/main/docs/dev/release/release_new_version.md#update-docker-image-tag) for the minor release `<MAJOR>.<MINOR>` on both [Docker Hub](https://hub.docker.com/r/gogs/gogs/tags) and [GitHub Container registry](https://github.com/gogs/gogs/pkgs/container/gogs).
 - [ ] [Compile and pack binaries](https://github.com/gogs/gogs/blob/main/docs/dev/release/release_new_version.md#compile-and-pack-binaries) (all prefixed with `gogs_<MAJOR>.<MINOR>.<PATCH>_`, e.g. `gogs_0.12.0_`):
 - [ ] [Compile and pack binaries](https://github.com/gogs/gogs/blob/main/docs/dev/release/release_new_version.md#compile-and-pack-binaries) (all prefixed with `gogs_<MAJOR>.<MINOR>.<PATCH>_`, e.g. `gogs_0.12.0_`):
-	- [ ] macOS: `darwin_arm64.zip`
+	- [ ] macOS: `darwin_arm64.zip`, `darwin_amd64.zip`
 	- [ ] Linux: `linux_amd64.tar.gz`, `linux_amd64.zip`
 	- [ ] Linux: `linux_amd64.tar.gz`, `linux_amd64.zip`
 	- [ ] ARM: `linux_armv8.tar.gz`, `linux_armv8.zip`
 	- [ ] ARM: `linux_armv8.tar.gz`, `linux_armv8.zip`
 	- [ ] Windows: `windows_amd64.zip`, `windows_amd64_mws.zip`
 	- [ ] Windows: `windows_amd64.zip`, `windows_amd64_mws.zip`

+ 0 - 71
docs/dev/release/release_new_version.md

@@ -1,71 +0,0 @@
-# Release a new version
-
-- To release a new minor version, use the GitHub issue template [Dev: Release a minor version](https://github.com/gogs/gogs/issues/new?title=Release+<MAJOR>.<MINOR>.0&labels=%F0%9F%93%B8%20release&template=dev_release_minor_version.md).
-- To release a new patch version, use the GitHub issue template [Dev: Release a patch version](https://github.com/gogs/gogs/issues/new?title=Release+<MAJOR>.<MINOR>.<PATCH>&labels=%F0%9F%93%B8%20release&template=dev_release_patch_version.md).
-
-## Playbooks
-
-### Update Docker image tag
-
-1. Pull down images and create a manifest:
-	```sh
-	$ export VERSION=0.12.4
-	$ export MINOR_RELEASE=0.12
-
-	$ docker pull --platform linux/amd64 gogs/gogs:${VERSION}
-	$ docker tag gogs/gogs:${VERSION} gogs/gogs:${MINOR_RELEASE}-amd64
-	$ docker push gogs/gogs:${MINOR_RELEASE}-amd64
-	$ docker pull --platform linux/arm64 gogs/gogs:${VERSION}
-	$ docker tag gogs/gogs:${VERSION} gogs/gogs:${MINOR_RELEASE}-arm64
-	$ docker push gogs/gogs:${MINOR_RELEASE}-arm64
-	$ docker pull --platform linux/arm/v7 gogs/gogs:${VERSION}
-	$ docker tag gogs/gogs:${VERSION} gogs/gogs:${MINOR_RELEASE}-armv7
-	$ docker push gogs/gogs:${MINOR_RELEASE}-armv7
-
-	$ docker manifest rm gogs/gogs:${MINOR_RELEASE}
-	$ docker manifest create \
-		gogs/gogs:${MINOR_RELEASE} \
-		gogs/gogs:${MINOR_RELEASE}-amd64 \
-		gogs/gogs:${MINOR_RELEASE}-arm64 \
-		gogs/gogs:${MINOR_RELEASE}-armv7
-	$ docker manifest push gogs/gogs:${MINOR_RELEASE}
-
-	# Only push "linux/amd64" for now
-	$ echo ${GITHUB_CR_PAT} | docker login ghcr.io -u <USERNAME> --password-stdin
-	$ docker tag gogs/gogs:${MINOR_RELEASE}-amd64 ghcr.io/gogs/gogs:${MINOR_RELEASE}
-	$ docker push ghcr.io/gogs/gogs:${MINOR_RELEASE}
-	```
-2. Delete ephemeral tags from the [Docker Hub](https://hub.docker.com/repository/docker/gogs/gogs/tags).
-
-### Compile and pack binaries
-
-All commands are starting at the repository root.
-
-- macOS:
-	```sh
-	# Produce the ZIP archive
-	$ TAGS=cert task release
-	```
-- Linux:
-	```sh
-	# Produce the ZIP archive
-	$ TAGS="cert" task release
-
-	# Produce the Tarball
-	$ export VERSION=0.12.4
-	$ cd release && tar czf gogs_${VERSION}_linux_$(go env GOARCH).tar.gz gogs
-	```
-- ARMv8:
-	```sh
-	# Produce the ZIP archive
-	$ TAGS="cert" task release
-
-	# Produce the Tarball
-	$ export VERSION=0.12.4
-	$ cd release && tar czf gogs_${VERSION}_linux_armv8.tar.gz gogs
-	```
-- Windows:
-	```sh
-	$ TAGS=cert task release
-	$ TAGS="cert minwinsvc" task release --force
-	```

+ 0 - 9
docs/dev/release/sha256.sh

@@ -1,9 +0,0 @@
-#!/bin/sh
-
-cd gogs || exit # "gogs" is the directory that stores all release archives
-for file in *
-do
-    if [ -f "$file" ]; then
-        shasum -a 256 "$file" >> checksum_sha256.txt
-    fi
-done