]> git.lizzy.rs Git - rust.git/blobdiff - .github/workflows/publish.yml
Improve github-release action
[rust.git] / .github / workflows / publish.yml
index be2c7a8ca0000fef9a0ec3420258b88db0402f53..e54a3693bc48eda3be81f2ddeacd9bd7218033a1 100644 (file)
@@ -2,8 +2,8 @@ name: publish
 on:
   workflow_dispatch: # We can add version input when 1.0 is released and scheduled releases are removed
 
-  schedule:
-    - cron: "0 0 * * *" # midnight UTC
+  schedule:
+    - cron: "0 0 * * *" # midnight UTC
 
   push:
     branches:
@@ -12,7 +12,7 @@ on:
 jobs:
   publish:
     name: publish
-    runs-on: ubuntu-16.04
+    runs-on: ubuntu-latest
     steps:
       - name: Checkout repository
         uses: actions/checkout@v2
@@ -41,4 +41,5 @@ jobs:
           git config --global user.name "Github Action"
           rm Cargo.lock
           cargo workspaces rename ra_ap_%n
+          find crates/rust-analyzer -type f -name '*.rs' -exec sed -i 's/rust_analyzer/ra_ap_rust_analyzer/g' {} +
           cargo workspaces publish --yes --force '*' --exact --no-git-commit --allow-dirty --skip-published custom 0.0.$PATCH