Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
fix(workflows): do not upload to wasabi, add license headers to workf…
Browse files Browse the repository at this point in the history
…lows
  • Loading branch information
auguwu committed May 15, 2022
1 parent 7684886 commit a7777f0
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 52 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ktlint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# 🧶 Remi: Library to handling files for persistent storage with Google Cloud Storage
# and Amazon S3-compatible server, made in Kotlin!
#
# Copyright 2022 Noelware <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: ktlint
on:
push:
Expand Down
27 changes: 18 additions & 9 deletions .github/workflows/release-snapshot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# 🧶 Remi: Library to handling files for persistent storage with Google Cloud Storage
# and Amazon S3-compatible server, made in Kotlin!
#
# Copyright 2022 Noelware <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Release a snapshot version
on:
release:
Expand Down Expand Up @@ -30,16 +47,8 @@ jobs:
run: ./gradlew compileKotlin --no-daemon

- name: Release!
run: ./gradlew publish -Dorg.gradle.s3.endpoint=https://s3.wasabisys.com
env:
NOELWARE_PUBLISHING_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
NOELWARE_PUBLISHING_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
NOELWARE_PUBLISHING_IS_SNAPSHOT: "true"

- name: Release to new S3 instance
run: ./gradlew publish -Dorg.gradle.s3.endpoint=${{ secrets.S3_ENDPOINT }}
env:
NOELWARE_PUBLISHING_SECRET_KEY: ${{ secrets.NEW_S3_SECRET_KEY }}
NOELWARE_PUBLISHING_ACCESS_KEY: ${{ secrets.NEW_S3_ACCESS_KEY }}
NOELWARE_PUBLISHING_IS_SNAPSHOT: "true"

NOELWARE_PUBLISHING_IS_SNAPSHOT: "false"
24 changes: 17 additions & 7 deletions .github/workflows/release-stable.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# 🧶 Remi: Library to handling files for persistent storage with Google Cloud Storage
# and Amazon S3-compatible server, made in Kotlin!
#
# Copyright 2022 Noelware <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Release a new version
on:
release:
Expand Down Expand Up @@ -30,13 +47,6 @@ jobs:
run: ./gradlew compileKotlin --no-daemon

- name: Release!
run: ./gradlew publish -Dorg.gradle.s3.endpoint=https://s3.wasabisys.com
env:
NOELWARE_PUBLISHING_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
NOELWARE_PUBLISHING_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
NOELWARE_PUBLISHING_IS_SNAPSHOT: "false"

- name: Release to new S3 instance
run: ./gradlew publish -Dorg.gradle.s3.endpoint=${{ secrets.S3_ENDPOINT }}
env:
NOELWARE_PUBLISHING_SECRET_KEY: ${{ secrets.NEW_S3_SECRET_KEY }}
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# 🧶 Remi: Library to handling files for persistent storage with Google Cloud Storage
# and Amazon S3-compatible server, made in Kotlin!
#
# Copyright 2022 Noelware <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: "Update documentation at 00:00"
on:
workflow_dispatch:
Expand Down
36 changes: 0 additions & 36 deletions docker-compose.yml

This file was deleted.

0 comments on commit a7777f0

Please sign in to comment.